File tree Expand file tree Collapse file tree 4 files changed +13
-4
lines changed
ImportExport/view/adminhtml/templates/import/form
Quote/Model/ResourceModel/Quote/Item
design/adminhtml/Magento/backend/Magento_Backend/layout Expand file tree Collapse file tree 4 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -178,9 +178,13 @@ require([
178
178
.loader('show');
179
179
var form = jQuery('#edit_form')
180
180
.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
+ }
184
188
185
189
form.trigger('save', [{
186
190
action: newActionUrl,
Original file line number Diff line number Diff line change @@ -323,6 +323,10 @@ private function addTierPriceData(ProductCollection $productCollection)
323
323
*/
324
324
private function removeItemsWithAbsentProducts ()
325
325
{
326
+ if (count ($ this ->_productIds ) === 0 ) {
327
+ return ;
328
+ }
329
+
326
330
$ productCollection = $ this ->_productCollectionFactory ->create ()->addIdFilter ($ this ->_productIds );
327
331
$ existingProductsIds = $ productCollection ->getAllIds ();
328
332
$ absentProductsIds = array_diff ($ this ->_productIds , $ existingProductsIds );
Original file line number Diff line number Diff line change 69
69
</type >
70
70
<type name =" Magento\Framework\App\Area" >
71
71
<arguments >
72
- <argument name =" translator" xsi : type =" object" >Magento\Framework\Translate </argument >
72
+ <argument name =" translator" xsi : type =" object" >Magento\Framework\TranslateInterface </argument >
73
73
<argument name =" design" xsi : type =" object" >Magento\Theme\Model\Design\Proxy</argument >
74
74
</arguments >
75
75
</type >
Original file line number Diff line number Diff line change 7
7
-->
8
8
<page xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" urn:magento:framework:View/Layout/etc/page_configuration.xsd" >
9
9
<head >
10
+ <meta name =" robots" content =" NOINDEX,NOFOLLOW" />
10
11
<css src =" jquery/jstree/themes/default/style.css" />
11
12
<css src =" css/styles-old.css" />
12
13
<css src =" css/styles.css" />
You can’t perform that action at this time.
0 commit comments