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([
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,
Original file line number Diff line number Diff 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 );
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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" />
You can’t perform that action at this time.
0 commit comments