Commit d52c798c authored by Sebastien Robin's avatar Sebastien Robin

corrected bug when a current_selection is a list


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@539 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 35f4aa4e
...@@ -660,6 +660,9 @@ class ListBoxWidget(Widget.Widget): ...@@ -660,6 +660,9 @@ class ListBoxWidget(Widget.Widget):
except: except:
method_path = getPath(here) + '/' + list_method.__name__ method_path = getPath(here) + '/' + list_method.__name__
# Sometimes the seltion name is a list ??? Why ????
if type(current_selection_name) in (type(()),type([])):
current_selection_name = current_selection_name[0]
list_url = url+'?selection_name='+current_selection_name+'&selection_index='+str(selection_index) list_url = url+'?selection_name='+current_selection_name+'&selection_index='+str(selection_index)
selection.edit( method_path= method_path, params = kw, list_url = list_url) selection.edit( method_path= method_path, params = kw, list_url = list_url)
#LOG("Selection kw", 0, str(selection.selection_params)) #LOG("Selection kw", 0, str(selection.selection_params))
......
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