Commit 56ccb491 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fixup! rewrite anonymous support in selection.

parent 1cc2c2db
...@@ -1143,8 +1143,8 @@ class ListBoxRenderer: ...@@ -1143,8 +1143,8 @@ class ListBoxRenderer:
# (i.e. do not update parameters in listboxes intended to show a previously defined selection. # (i.e. do not update parameters in listboxes intended to show a previously defined selection.
listbox_prefix = '%s_' % self.getId() listbox_prefix = '%s_' % self.getId()
for k, v in self.request.form.iteritems(): for k, v in self.request.form.iteritems():
# Ignore parameters for other listboxes and selection keys. # Ignore selection keys.
if 'listbox_' in k or k.endswith('selection_key'): if k.endswith('selection_key'):
continue continue
elif k.startswith(listbox_prefix): elif k.startswith(listbox_prefix):
k = k[len(listbox_prefix):] k = k[len(listbox_prefix):]
...@@ -1153,6 +1153,9 @@ class ListBoxRenderer: ...@@ -1153,6 +1153,9 @@ class ListBoxRenderer:
# will limit the contents for the selection. # will limit the contents for the selection.
if k != 'uid': if k != 'uid':
params[k] = v params[k] = v
elif 'listbox_' in k:
# Ignore parameters for other listboxes
continue
else: else:
params[k] = v params[k] = v
for k, v in self.getDefaultParamList(): for k, v in self.getDefaultParamList():
......
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