Commit 4b3c8feb authored by Arnaud Fontaine's avatar Arnaud Fontaine

Get rid of unused variable


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@44787 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e031cf10
......@@ -461,13 +461,12 @@ class MainForm(Form):
# to match the end of the option control value string because in
# ERP5, the value could be URL (such as 'http://foo:81/erp5/logout')
if value:
selected_item = None
for item in select_control.options:
if '?' not in value:
item = item.split('?')[0]
if item.endswith(value):
value = selected_item = item
value = item
logging.debug("select_id='%s', label='%s', value='%s'" % \
(select_name, label, value))
......
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