Skip to content

Commit e67b8a6

Browse files
AC-1429: Customer Segment is broken
1 parent e88d5bd commit e67b8a6

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

lib/web/mage/backend/tabs.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -239,11 +239,14 @@ define([
239239
// Extension for mage.tabs - Ajax functionality for tabs
240240
$.widget('mage.tabs', $.mage.tabs, {
241241
options: {
242-
ajaxOptions: {
243-
data: {
244-
isAjax: true,
245-
'form_key': typeof FORM_KEY !== 'undefined' ? FORM_KEY : null
246-
}
242+
beforeLoad: function( event, ui ) {
243+
ui.ajaxSettings.type = 'POST';
244+
ui.ajaxSettings.hasContent = true;
245+
ui.jqXHR.setRequestHeader("Content-Type", ui.ajaxSettings.contentType);
246+
ui.ajaxSettings.data = jQuery.param(
247+
{isAjax: true, 'form_key': typeof FORM_KEY !== 'undefined' ? FORM_KEY : null},
248+
ui.ajaxSettings.traditional
249+
);
247250
},
248251

249252
/**

0 commit comments

Comments
 (0)