Commit bd9abf3e authored by Kevin Deldycke's avatar Kevin Deldycke

This modification eliminate the bug #62 (thanks to Moussa). The other part of...

This modification eliminate the bug #62 (thanks to Moussa). The other part of this modification is in the ZODB python script portal_skins/erp5_core/Base_callDialogMethod


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3672 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5ad89027
...@@ -662,6 +662,16 @@ class ListBoxWidget(Widget.Widget): ...@@ -662,6 +662,16 @@ class ListBoxWidget(Widget.Widget):
# Only update params if list_method is defined # Only update params if list_method is defined
# (ie. do not update params in listboxed intended to show a previously defined selection # (ie. do not update params in listboxed intended to show a previously defined selection
params.update(REQUEST.form) params.update(REQUEST.form)
empty_fields = REQUEST.get('my_empty_fields')
if not empty_fields is None:
if empty_fields.find(','):
empty_fields=empty_fields.split(",")
for k in range(0,len(empty_fields)-1):
params[empty_fields[k]] = None
elif empty_fields != '':
params[empty_fields] = None
for (k,v) in default_params: for (k,v) in default_params:
if REQUEST.form.has_key(k): if REQUEST.form.has_key(k):
params[k] = REQUEST.form[k] params[k] = REQUEST.form[k]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment