From 5f7019902298a76e8c028056b64711b887127b94 Mon Sep 17 00:00:00 2001 From: Renaud Le Gac <legac@cppm.in2p3.fr> Date: Thu, 27 Mar 2014 16:58:46 +0100 Subject: [PATCH] Bug fixed, no star in the label for field in GridFilter. --- modules/plugin_dbui/converter.py | 6 +++++- static/plugin_dbui/CHANGELOG | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/plugin_dbui/converter.py b/modules/plugin_dbui/converter.py index 28c6ccba..bef772d2 100644 --- a/modules/plugin_dbui/converter.py +++ b/modules/plugin_dbui/converter.py @@ -527,13 +527,17 @@ def to_gridFilter(table, **kwargs): # remove field constraints making no sense for a filter if 'allowBlank' in cfg: cfg["allowBlank"] = True - + if 'readOnly' in cfg: cfg['readOnly'] = False if 'value' in cfg: del cfg['value'] + # Remove the star in the label for required field + if field.notnull and 'afterLabelTextTpl' in cfg: + del cfg['afterLabelTextTpl'] + # replace all textarea by textfield if cfg['xtype'] == 'xtextarea': cfg['xtype'] = 'xtextfield' diff --git a/static/plugin_dbui/CHANGELOG b/static/plugin_dbui/CHANGELOG index f44006bc..a1af0572 100644 --- a/static/plugin_dbui/CHANGELOG +++ b/static/plugin_dbui/CHANGELOG @@ -2,6 +2,8 @@ HEAD + - Consolidation version + 0.6.1.0 (Mar 2014) - Consolidation version running with Ext JS 4.2.1 - Deploy the dynamic loading when running in debug mode. -- GitLab