Skip to content

Commit d0da0e4

Browse files
merge magento/2.3-develop into magento-borg/BugFixPR
2 parents 170d46b + b252ca0 commit d0da0e4

File tree

21 files changed

+292
-166
lines changed

21 files changed

+292
-166
lines changed

app/code/Magento/Analytics/Test/Mftf/Test/AdminConfigurationIndustryTest.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
<severity value="MAJOR"/>
1818
<testCaseId value="MAGETWO-63898"/>
1919
<group value="analytics"/>
20+
<skip>
21+
<issueId value="MAGETWO-96223"/>
22+
</skip>
2023
</annotations>
2124

2225
<actionGroup ref="LoginActionGroup" stepKey="loginAsAdmin"/>

app/code/Magento/Catalog/Block/Product/Compare/ListCompare.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,7 @@ public function __construct(
122122
*/
123123
public function getAddToWishlistParams($product)
124124
{
125-
$continueUrl = $this->urlEncoder->encode($this->getUrl('customer/account'));
126-
$urlParamName = Action::PARAM_NAME_URL_ENCODED;
127-
128-
$continueUrlParams = [$urlParamName => $continueUrl];
129-
130-
return $this->_wishlistHelper->getAddParams($product, $continueUrlParams);
125+
return $this->_wishlistHelper->getAddParams($product);
131126
}
132127

133128
/**

app/code/Magento/Catalog/Model/Design.php

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
*/
66
namespace Magento\Catalog\Model;
77

8+
use \Magento\Framework\TranslateInterface;
9+
810
/**
911
* Catalog Custom Category design Model
1012
*
@@ -31,14 +33,20 @@ class Design extends \Magento\Framework\Model\AbstractModel
3133
*/
3234
protected $_localeDate;
3335

36+
/**
37+
* @var TranslateInterface
38+
*/
39+
private $translator;
40+
3441
/**
3542
* @param \Magento\Framework\Model\Context $context
3643
* @param \Magento\Framework\Registry $registry
3744
* @param \Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate
3845
* @param \Magento\Framework\View\DesignInterface $design
39-
* @param \Magento\Framework\Model\ResourceModel\AbstractResource $resource
40-
* @param \Magento\Framework\Data\Collection\AbstractDb $resourceCollection
46+
* @param \Magento\Framework\Model\ResourceModel\AbstractResource|null $resource
47+
* @param \Magento\Framework\Data\Collection\AbstractDb|null $resourceCollection
4148
* @param array $data
49+
* @param TranslateInterface|null $translator
4250
*/
4351
public function __construct(
4452
\Magento\Framework\Model\Context $context,
@@ -47,10 +55,13 @@ public function __construct(
4755
\Magento\Framework\View\DesignInterface $design,
4856
\Magento\Framework\Model\ResourceModel\AbstractResource $resource = null,
4957
\Magento\Framework\Data\Collection\AbstractDb $resourceCollection = null,
50-
array $data = []
58+
array $data = [],
59+
TranslateInterface $translator = null
5160
) {
5261
$this->_localeDate = $localeDate;
5362
$this->_design = $design;
63+
$this->translator = $translator ?:
64+
\Magento\Framework\App\ObjectManager::getInstance()->get(TranslateInterface::class);
5465
parent::__construct($context, $registry, $resource, $resourceCollection, $data);
5566
}
5667

@@ -63,6 +74,7 @@ public function __construct(
6374
public function applyCustomDesign($design)
6475
{
6576
$this->_design->setDesignTheme($design);
77+
$this->translator->loadData(null, true);
6678
return $this;
6779
}
6880

app/code/Magento/Checkout/Test/Mftf/Section/CheckoutShippingMethodsSection.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<element name="shippingMethodRow" type="text" selector=".form.methods-shipping table tbody tr"/>
1515
<element name="checkShippingMethodByName" type="radio" selector="//div[@id='checkout-shipping-method-load']//td[contains(., '{{var1}}')]/..//input" parameterized="true"/>
1616
<element name="shippingMethodRowByName" type="text" selector="//div[@id='checkout-shipping-method-load']//td[contains(., '{{var1}}')]/.." parameterized="true"/>
17-
<element name="shipHereButton" type="button" selector="//button[contains(@class, 'action-select-shipping-item')]/parent::div/following-sibling::div/button[contains(@class, 'action-select-shipping-item')]"/>
17+
<element name="shipHereButton" type="button" selector="//div/following-sibling::div/button[contains(@class, 'action-select-shipping-item')]"/>
1818
<element name="shippingMethodLoader" type="button" selector="//div[contains(@class, 'checkout-shipping-method')]/following-sibling::div[contains(@class, 'loading-mask')]"/>
1919
</section>
2020
</sections>

app/code/Magento/Checkout/view/frontend/web/template/shipping-address/address-renderer/default.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@
3535
click="editAddress">
3636
<span translate="'Edit'"></span>
3737
</button>
38+
<!-- ko if: (!isSelected()) -->
3839
<button type="button" click="selectAddress" class="action action-select-shipping-item">
3940
<span translate="'Ship Here'"></span>
4041
</button>
42+
<!-- /ko -->
4143
</div>

app/code/Magento/Customer/view/frontend/web/js/password-strength-indicator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ define([
8383
} else {
8484
isValid = $.validator.validateSingleElement(this.options.cache.input);
8585
zxcvbnScore = zxcvbn(password).score;
86-
displayScore = isValid ? zxcvbnScore : 1;
86+
displayScore = isValid && zxcvbnScore > 0 ? zxcvbnScore : 1;
8787
}
8888
}
8989

app/code/Magento/CustomerImportExport/Model/Import/Address.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,13 @@ class Address extends AbstractCustomer
101101
*/
102102
protected $_entityTable;
103103

104+
/**
105+
* Region collection instance
106+
*
107+
* @var \Magento\Directory\Model\ResourceModel\Region\Collection
108+
*/
109+
private $_regionCollection;
110+
104111
/**
105112
* Countries and regions
106113
*
@@ -781,7 +788,7 @@ public static function getDefaultAddressAttributeMapping()
781788
}
782789

783790
/**
784-
* check if address for import is empty (for customer composite mode)
791+
* Check if address for import is empty (for customer composite mode)
785792
*
786793
* @param array $rowData
787794
* @return array
@@ -940,7 +947,7 @@ protected function _checkRowDuplicate($customerId, $addressId)
940947
}
941948

942949
/**
943-
* set customer attributes
950+
* Set customer attributes
944951
*
945952
* @param array $customerAttributes
946953
* @return $this

app/code/Magento/ImportExport/Controller/Adminhtml/Import/Start.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,20 @@ public function execute()
9393
$this->addErrorMessages($resultBlock, $errorAggregator);
9494
} else {
9595
$this->importModel->invalidateIndex();
96+
97+
$noticeHtml = $this->historyModel->getSummary();
98+
99+
if ($this->historyModel->getErrorFile()) {
100+
$noticeHtml .= '<div class="import-error-wrapper">' . __('Only the first 100 errors are shown. ')
101+
. '<a href="'
102+
. $this->createDownloadUrlImportHistoryFile($this->historyModel->getErrorFile())
103+
. '">' . __('Download full report') . '</a></div>';
104+
}
105+
106+
$resultBlock->addNotice(
107+
$noticeHtml
108+
);
109+
96110
$this->addErrorMessages($resultBlock, $errorAggregator);
97111
$resultBlock->addSuccess(__('Import successfully done'));
98112
}

app/code/Magento/ImportExport/Model/Import/Entity/AbstractEntity.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,9 @@ public function getBehavior()
554554
$this->_parameters['behavior']
555555
) ||
556556
$this->_parameters['behavior'] != ImportExport::BEHAVIOR_APPEND &&
557+
$this->_parameters['behavior'] != ImportExport::BEHAVIOR_ADD_UPDATE &&
557558
$this->_parameters['behavior'] != ImportExport::BEHAVIOR_REPLACE &&
559+
$this->_parameters['behavior'] != ImportExport::BEHAVIOR_CUSTOM &&
558560
$this->_parameters['behavior'] != ImportExport::BEHAVIOR_DELETE
559561
) {
560562
return ImportExport::getDefaultBehavior();
@@ -828,6 +830,8 @@ public function validateData()
828830
}
829831

830832
/**
833+
* Get error aggregator object
834+
*
831835
* @return ProcessingErrorAggregatorInterface
832836
*/
833837
public function getErrorAggregator()

app/code/Magento/LayeredNavigation/Observer/Edit/Tab/Front/ProductAttributeFormBuildFrontTabObserver.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,11 @@ public function execute(\Magento\Framework\Event\Observer $observer)
6060
'name' => 'is_filterable',
6161
'label' => __("Use in Layered Navigation"),
6262
'title' => __('Can be used only with catalog input type Yes/No, Dropdown, Multiple Select and Price'),
63-
'note' => __('Can be used only with catalog input type Yes/No, Dropdown, Multiple Select and Price.'),
63+
'note' => __(
64+
'Can be used only with catalog input type Yes/No, Dropdown, Multiple Select and Price.
65+
<br>Price is not compatible with <b>\'Filterable (no results)\'</b> option -
66+
it will make no affect on Price filter.'
67+
),
6468
'values' => [
6569
['value' => '0', 'label' => __('No')],
6670
['value' => '1', 'label' => __('Filterable (with results)')],

0 commit comments

Comments
 (0)