Skip to content

Commit 267d91d

Browse files
author
Stanislav Idolov
authored
🔃 [EngCom] Public Pull Requests - 2.1-develop
Accepted Public Pull Requests: - #17260: [Backport] Using interface instead of model directly (by @mage2pratik) - #17182: [Backport] DOBISSUE date format changed after customer tries to register with sa (by @gelanivishal) - #16898: [Backport] Prevent running SQL query on every item in the database when the quote is empty (by @mage2pratik)
2 parents 7d0ab7c + 3126d53 commit 267d91d

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

app/code/Magento/Customer/Block/Widget/Dob.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ protected function getFormFilter()
127127
protected function applyOutputFilter($value)
128128
{
129129
$filter = $this->getFormFilter();
130-
if ($filter) {
130+
if ($filter && $value) {
131+
$value = date('Y-m-d', $this->getTime());
131132
$value = $filter->outputFilter($value);
132133
}
133134
return $value;

app/code/Magento/Quote/Model/ResourceModel/Quote/Item/Collection.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,10 @@ protected function _assignProducts()
272272
*/
273273
private function removeItemsWithAbsentProducts()
274274
{
275+
if (count($this->_productIds) === 0) {
276+
return;
277+
}
278+
275279
$productCollection = $this->_productCollectionFactory->create()->addIdFilter($this->_productIds);
276280
$existingProductsIds = $productCollection->getAllIds();
277281
$absentProductsIds = array_diff($this->_productIds, $existingProductsIds);

app/code/Magento/Theme/etc/di.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
</type>
9595
<type name="Magento\Framework\App\Area">
9696
<arguments>
97-
<argument name="translator" xsi:type="object">Magento\Framework\Translate</argument>
97+
<argument name="translator" xsi:type="object">Magento\Framework\TranslateInterface</argument>
9898
<argument name="design" xsi:type="object">Magento\Theme\Model\Design\Proxy</argument>
9999
</arguments>
100100
</type>

app/design/adminhtml/Magento/backend/Magento_Backend/layout/default.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
-->
88
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
99
<head>
10+
<meta name="robots" content="NOINDEX,NOFOLLOW"/>
1011
<css src="jquery/jstree/themes/default/style.css"/>
1112
<css src="css/styles-old.css"/>
1213
<css src="css/styles.css"/>

0 commit comments

Comments
 (0)