diff --git a/modules/plugin_dbui/cfgsvc.py b/modules/plugin_dbui/cfgsvc.py index fde33d7b24fbb0d1409f2cee43783d2c3816717e..c9c161208b71803bdbbb88dfc989cb5a8026a589 100644 --- a/modules/plugin_dbui/cfgsvc.py +++ b/modules/plugin_dbui/cfgsvc.py @@ -217,8 +217,18 @@ class CfgSvc(object): cfg['items'].append(self._getFormField(tablename, fieldname)) if fieldname == 'id': id_is_not_used = False - - cfg.update(fieldset.extjs) + + # protection when applying Ext JS configuration parameters + # NOTE: if the user submit a list of items they are append at the + # end of the current list. + # It is a way to add spacer and to fine tune the layout + di = dict(fieldset.extjs) + if 'items' in di: + cfg['items'].extend(di['items']) + del di['items'] + + # Apply the remaining Ext JS configuration parameters + cfg.update(di) li.append(cfg) if id_is_not_used: