File tree 1 file changed +7
-3
lines changed
app/code/Magento/ImportExport/view/adminhtml/templates/import/form
1 file changed +7
-3
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,
You can’t perform that action at this time.
0 commit comments