Commit 6755f1f6 authored by Jérome Perrin's avatar Jérome Perrin

Setting URL Column to an empty string or None disable link generation.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8585 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ce925b58
......@@ -1884,13 +1884,13 @@ class ListBoxHTMLRendererLine(ListBoxRendererLine):
if url_column_dict.has_key(sql):
url_method_id = url_column_dict.get(sql)
if url_method_id != sql:
if url_method_id is not None:
if url_method_id not in (None, ''):
url_method = getattr(brain, url_method_id, None)
if url_method is None:
LOG('ListBox', WARNING, 'could not find the url method %s' % (url_method_id,))
no_link = True
else:
# If the value is None, generate no link.
# If the URL Method is empty, generate no link.
no_link = True
if url_method is not None:
......
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