diff --git a/api/js/etemplate/et2_widget_toolbar.js b/api/js/etemplate/et2_widget_toolbar.js index 270995e0fb..a08d25c6fe 100644 --- a/api/js/etemplate/et2_widget_toolbar.js +++ b/api/js/etemplate/et2_widget_toolbar.js @@ -223,6 +223,9 @@ var et2_toolbar = /** @class */ (function (_super) { var action = actions[name_1]; if (typeof action == 'string') action = { id: name_1, caption: action }; + if (typeof action.group == 'undefined') { + action.group = 'default'; + } // Add in divider if (last_group_id != action.group) { last_group = jQuery('[data-group="' + action.group + '"]', this_1.actionlist); diff --git a/api/js/etemplate/et2_widget_toolbar.ts b/api/js/etemplate/et2_widget_toolbar.ts index 155282d743..1796dc3c27 100644 --- a/api/js/etemplate/et2_widget_toolbar.ts +++ b/api/js/etemplate/et2_widget_toolbar.ts @@ -276,6 +276,10 @@ class et2_toolbar extends et2_DOMWidget implements et2_IInput { let action = actions[name]; if (typeof action == 'string') action = {id: name, caption: action}; + if(typeof action.group == 'undefined') + { + action.group = 'default'; + } // Add in divider if(last_group_id != action.group)