We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2741899 commit aa1e604Copy full SHA for aa1e604
lib/web/mage/backend/tabs.js
@@ -366,9 +366,11 @@
366
367
/**
368
* Add active tab id in data object when "beforeSubmit" event is triggered
369
+ * @param {Object} e - event object
370
+ * @param {Object} data - event data object
371
* @protected
372
*/
- _onBeforeSubmit: function () {
373
+ _onBeforeSubmit: function (e, data) { //eslint-disable-line no-unused-vars
374
var activeAnchor = this.activeAnchor(),
375
activeTabId = activeAnchor.prop('id'),
376
options;
@@ -385,6 +387,7 @@
385
387
}
386
388
};
389
options.action.args[this.options.tabIdArgument] = activeTabId;
390
+ data = data ? $.extend(data, options) : options;
391
392
});
393
0 commit comments