Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit a06ae36

Browse files
Merge pull request #7 from magento/2.3-develop
update branch 2.3 develop
2 parents 37b2eb6 + 6478d2b commit a06ae36

File tree

17 files changed

+56
-23
lines changed

17 files changed

+56
-23
lines changed

app/code/Magento/Catalog/Model/Product/Attribute/OptionManagement.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88

99
use Magento\Framework\Exception\InputException;
1010

11+
/**
12+
* Option management model for product attribute.
13+
*/
1114
class OptionManagement implements \Magento\Catalog\Api\ProductAttributeOptionManagementInterface
1215
{
1316
/**
@@ -25,7 +28,7 @@ public function __construct(
2528
}
2629

2730
/**
28-
* {@inheritdoc}
31+
* @inheritdoc
2932
*/
3033
public function getItems($attributeCode)
3134
{
@@ -36,7 +39,7 @@ public function getItems($attributeCode)
3639
}
3740

3841
/**
39-
* {@inheritdoc}
42+
* @inheritdoc
4043
*/
4144
public function add($attributeCode, $option)
4245
{
@@ -47,7 +50,7 @@ public function add($attributeCode, $option)
4750
/** @var \Magento\Eav\Api\Data\AttributeOptionInterface $attributeOption */
4851
$attributeOption = $attributeOption->getLabel();
4952
});
50-
if (in_array($option->getLabel(), $currentOptions)) {
53+
if (in_array($option->getLabel(), $currentOptions, true)) {
5154
return false;
5255
}
5356
}
@@ -59,7 +62,7 @@ public function add($attributeCode, $option)
5962
}
6063

6164
/**
62-
* {@inheritdoc}
65+
* @inheritdoc
6366
*/
6467
public function delete($attributeCode, $optionId)
6568
{

app/code/Magento/Cron/Observer/ProcessCronQueueObserver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ protected function _runJob($scheduledTime, $currentTime, $jobConfig, $schedule,
298298

299299
if (!isset($jobConfig['instance'], $jobConfig['method'])) {
300300
$schedule->setStatus(Schedule::STATUS_ERROR);
301-
throw new \Exception('No callbacks found');
301+
throw new \Exception(sprintf('No callbacks found for cron job %s', $jobCode));
302302
}
303303
$model = $this->_objectManager->create($jobConfig['instance']);
304304
$callback = [$model, $jobConfig['method']];

app/code/Magento/Cron/Test/Unit/Observer/ProcessCronQueueObserverTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,8 @@ public function testDispatchExceptionTooLate()
354354
*/
355355
public function testDispatchExceptionNoCallback()
356356
{
357-
$exceptionMessage = 'No callbacks found';
357+
$jobName = 'test_job1';
358+
$exceptionMessage = 'No callbacks found for cron job ' . $jobName;
358359
$exception = new \Exception(__($exceptionMessage));
359360

360361
$dateScheduledAt = date('Y-m-d H:i:s', $this->time - 86400);
@@ -383,7 +384,7 @@ public function testDispatchExceptionNoCallback()
383384

384385
$this->loggerMock->expects($this->once())->method('critical')->with($exception);
385386

386-
$jobConfig = ['test_group' => ['test_job1' => ['instance' => 'Some_Class']]];
387+
$jobConfig = ['test_group' => [$jobName => ['instance' => 'Some_Class']]];
387388

388389
$this->_config->expects($this->exactly(2))->method('getJobs')->will($this->returnValue($jobConfig));
389390

app/code/Magento/Customer/view/frontend/templates/address/edit.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
<div class="control">
105105
<select id="region_id" name="region_id"
106106
title="<?= /* @noEscape */ $block->getAttributeData()->getFrontendLabel('region') ?>"
107-
class="validate-select" <?= /* @noEscape */ !$block->getConfig('general/region/display_all') ? ' disabled="disabled"' : '' ?>>
107+
class="validate-select region_id" <?= /* @noEscape */ !$block->getConfig('general/region/display_all') ? ' disabled="disabled"' : '' ?>>
108108
<option value=""><?= $block->escapeHtml(__('Please select a region, state or province.')) ?></option>
109109
</select>
110110
<input type="text"

app/code/Magento/Customer/view/frontend/templates/form/register.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
<div class="field region required">
9595
<label for="region_id" class="label"><span><?= /* @noEscape */ $block->getAttributeData()->getFrontendLabel('region') ?></span></label>
9696
<div class="control">
97-
<select id="region_id" name="region_id" title="<?= /* @noEscape */ $block->getAttributeData()->getFrontendLabel('region') ?>" class="validate-select" style="display:none;">
97+
<select id="region_id" name="region_id" title="<?= /* @noEscape */ $block->getAttributeData()->getFrontendLabel('region') ?>" class="validate-select region_id" style="display:none;">
9898
<option value=""><?= $block->escapeHtml(__('Please select a region, state or province.')) ?></option>
9999
</select>
100100
<input type="text" id="region" name="region" value="<?= $block->escapeHtml($block->getRegion()) ?>" title="<?= /* @noEscape */ $block->getAttributeData()->getFrontendLabel('region') ?>" class="input-text <?= $block->escapeHtmlAttr($this->helper('Magento\Customer\Helper\Address')->getAttributeValidationClass('region')) ?>" style="display:none;">

app/code/Magento/Sales/Model/Order.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -660,8 +660,8 @@ private function canCreditmemoForZeroTotalRefunded($totalRefunded)
660660
$isRefundZero = abs($totalRefunded) < .0001;
661661
// Case when Adjustment Fee (adjustment_negative) has been used for first creditmemo
662662
$hasAdjustmentFee = abs($totalRefunded - $this->getAdjustmentNegative()) < .0001;
663-
$hasActinFlag = $this->getActionFlag(self::ACTION_FLAG_EDIT) === false;
664-
if ($isRefundZero || $hasAdjustmentFee || $hasActinFlag) {
663+
$hasActionFlag = $this->getActionFlag(self::ACTION_FLAG_EDIT) === false;
664+
if ($isRefundZero || $hasAdjustmentFee || $hasActionFlag) {
665665
return false;
666666
}
667667

@@ -680,13 +680,12 @@ public function canCreditmemoForZeroTotal($totalRefunded)
680680
//check if total paid is less than grandtotal
681681
$checkAmtTotalPaid = $totalPaid <= $this->getGrandTotal();
682682
//case when amount is due for invoice
683-
$dueAmountCondition = $this->canInvoice() && ($checkAmtTotalPaid);
683+
$hasDueAmount = $this->canInvoice() && ($checkAmtTotalPaid);
684684
//case when paid amount is refunded and order has creditmemo created
685-
686685
$creditmemos = ($this->getCreditmemosCollection() === false) ?
687686
true : (count($this->getCreditmemosCollection()) > 0);
688687
$paidAmtIsRefunded = $this->getTotalRefunded() == $totalPaid && $creditmemos;
689-
if (($dueAmountCondition || $paidAmtIsRefunded) ||
688+
if (($hasDueAmount || $paidAmtIsRefunded) ||
690689
(!$checkAmtTotalPaid &&
691690
abs($totalRefunded - $this->getAdjustmentNegative()) < .0001)) {
692691
return false;

app/code/Magento/Sales/i18n/en_US.csv

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -795,3 +795,5 @@ Created,Created
795795
"PDF Shipments","PDF Shipments"
796796
"PDF Creditmemos","PDF Creditmemos"
797797
Refunds,Refunds
798+
"Allow Zero GrandTotal for Creditmemo","Allow Zero GrandTotal for Creditmemo"
799+
"Allow Zero GrandTotal","Allow Zero GrandTotal"
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ThemeGraphQlhQl
1+
# ThemeGraphQl
22

3-
**ThemeGraphQlhQl** provides type information for the GraphQl module
3+
**ThemeGraphQl** provides type information for the GraphQl module
44
to generate theme fields information endpoints.

app/code/Magento/Wishlist/etc/adminhtml/system.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@
3939
<label>Enabled</label>
4040
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
4141
</field>
42+
<field id="show_in_sidebar" translate="label" type="select" sortOrder="5" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
43+
<label>Show in Sidebar</label>
44+
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
45+
</field>
4246
</group>
4347
<group id="wishlist_link" translate="label" sortOrder="3" showInDefault="1" showInWebsite="1" showInStore="0">
4448
<label>My Wish List Link</label>

app/code/Magento/Wishlist/etc/config.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<wishlist>
1111
<general>
1212
<active>1</active>
13+
<show_in_sidebar>1</show_in_sidebar>
1314
</general>
1415
<email>
1516
<email_identity>general</email_identity>

app/code/Magento/Wishlist/i18n/en_US.csv

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,4 +118,5 @@ Action,Action
118118
Configure,Configure
119119
Delete,Delete
120120
"Product Details and Comment","Product Details and Comment"
121-
"You must login or register to add items to your wishlist.","You must login or register to add items to your wishlist."
121+
"You must login or register to add items to your wishlist.","You must login or register to add items to your wishlist."
122+
"Show in Sidebar","Show in Sidebar"

app/code/Magento/Wishlist/view/frontend/layout/default.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
</block>
1919
</referenceBlock>
2020
<referenceContainer name="sidebar.additional">
21-
<block class="Magento\Wishlist\Block\Customer\Sidebar" name="wishlist_sidebar" as="wishlist" template="Magento_Wishlist::sidebar.phtml"/>
21+
<block class="Magento\Wishlist\Block\Customer\Sidebar" name="wishlist_sidebar" as="wishlist" template="Magento_Wishlist::sidebar.phtml" ifconfig="wishlist/general/show_in_sidebar"/>
2222
</referenceContainer>
2323
</body>
2424
</page>

app/design/adminhtml/Magento/backend/Magento_Backend/web/css/source/module/main/_collapsible-blocks.less

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,11 @@
162162
&.collapsible-block-wrapper-last {
163163
border-bottom: 0;
164164
}
165+
.admin__dynamic-rows.admin__control-collapsible {
166+
.admin__collapsible-block-wrapper {
167+
border-bottom: none;
168+
}
169+
}
165170
}
166171

167172
.admin__collapsible-content {

app/design/adminhtml/Magento/backend/web/css/source/forms/_fields.less

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,14 @@
147147
}
148148
}
149149
}
150+
151+
&.field-currently_used_for {
152+
> .admin__field-control {
153+
.admin__field {
154+
margin-top: 8px;
155+
}
156+
}
157+
}
150158
}
151159
}
152160

@@ -288,6 +296,12 @@
288296
.admin__fieldset > & {
289297
margin-bottom: 3rem;
290298
position: relative;
299+
300+
&.field-import_file {
301+
.input-file {
302+
margin-top: 6px;
303+
}
304+
}
291305
}
292306

293307
// Hide group legend and show first field label instead

app/design/frontend/Magento/blank/Magento_Customer/web/css/source/_module.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
}
6666

6767
.form-address-edit {
68-
#region_id {
68+
.region_id {
6969
display: none;
7070
}
7171

@@ -368,7 +368,7 @@
368368

369369
.account {
370370
.page.messages {
371-
margin-bottom: @indent__xl;
371+
margin-bottom: @indent__base;
372372
}
373373

374374
.toolbar {

app/design/frontend/Magento/luma/Magento_Customer/web/css/source/_module.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
}
7171

7272
.form-address-edit {
73-
#region_id {
73+
.region_id {
7474
display: none;
7575
}
7676

@@ -551,7 +551,7 @@
551551

552552
.account {
553553
.page.messages {
554-
margin-bottom: @indent__xl;
554+
margin-bottom: @indent__base;
555555
}
556556

557557
.column.main {

lib/internal/Magento/Framework/Option/ArrayInterface.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66
namespace Magento\Framework\Option;
77

88
/**
9-
* @todo Remove in favor of the ancestor interface
9+
* Array marker interface
10+
*
11+
* @deprecated please use \Magento\Framework\Data\OptionSourceInterface instead.
12+
* @see \Magento\Framework\Data\OptionSourceInterface
1013
*/
1114
interface ArrayInterface extends \Magento\Framework\Data\OptionSourceInterface
1215
{

0 commit comments

Comments
 (0)