Skip to content

Commit fe11b39

Browse files
🔃 [EngCom] Public Pull Requests - 2.3-develop
Accepted Public Pull Requests: - #17259: [Forwardport] Using interface instead of model directly (by @mage2pratik) - magento-engcom/import-export-improvements#111: magento-engcom/import-export-improvements#58: Fix generation of import url (by @dmanners) - #16897: [Forwardport] Prevent running SQL query on every item in the database when the quote is empty (by @mage2pratik)
2 parents 137fcbf + 28d25e0 commit fe11b39

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

app/code/Magento/ImportExport/view/adminhtml/templates/import/form/before.phtml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,13 @@ require([
178178
.loader('show');
179179
var form = jQuery('#edit_form')
180180
.one('invalid-form.validate', function(e){jQuery('body').loader('hide')});
181-
newActionUrl = (newActionUrl ? newActionUrl : form.attr('action')) +
182-
(form.attr('action').lastIndexOf('?') != -1 ? '&' : '?')+
183-
'form_key=' + encodeURIComponent(form.find('[name="form_key"]').val());
181+
182+
newActionUrl = (newActionUrl ? newActionUrl : form.attr('action'));
183+
if (newActionUrl.lastIndexOf('form_key') === -1) {
184+
newActionUrl = newActionUrl +
185+
(newActionUrl.lastIndexOf('?') !== -1 ? '&' : '?') +
186+
'form_key=' + encodeURIComponent(form.find('[name="form_key"]').val());
187+
}
184188

185189
form.trigger('save', [{
186190
action: newActionUrl,

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,10 @@ private function addTierPriceData(ProductCollection $productCollection)
323323
*/
324324
private function removeItemsWithAbsentProducts()
325325
{
326+
if (count($this->_productIds) === 0) {
327+
return;
328+
}
329+
326330
$productCollection = $this->_productCollectionFactory->create()->addIdFilter($this->_productIds);
327331
$existingProductsIds = $productCollection->getAllIds();
328332
$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
@@ -69,7 +69,7 @@
6969
</type>
7070
<type name="Magento\Framework\App\Area">
7171
<arguments>
72-
<argument name="translator" xsi:type="object">Magento\Framework\Translate</argument>
72+
<argument name="translator" xsi:type="object">Magento\Framework\TranslateInterface</argument>
7373
<argument name="design" xsi:type="object">Magento\Theme\Model\Design\Proxy</argument>
7474
</arguments>
7575
</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)