Skip to content

Commit aa1e604

Browse files
MAGETWO-67342: L3 Javascript job green when error present in log
1 parent 2741899 commit aa1e604

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/web/mage/backend/tabs.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,9 +366,11 @@
366366

367367
/**
368368
* 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
369371
* @protected
370372
*/
371-
_onBeforeSubmit: function () {
373+
_onBeforeSubmit: function (e, data) { //eslint-disable-line no-unused-vars
372374
var activeAnchor = this.activeAnchor(),
373375
activeTabId = activeAnchor.prop('id'),
374376
options;
@@ -385,6 +387,7 @@
385387
}
386388
};
387389
options.action.args[this.options.tabIdArgument] = activeTabId;
390+
data = data ? $.extend(data, options) : options;
388391
}
389392
});
390393

0 commit comments

Comments
 (0)