Commit a61b1ef9 authored by Yoshinori Okuji's avatar Yoshinori Okuji

If template_catalog_method_id is None, assign result to an empty tuple.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@749 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e4d7edee
...@@ -361,6 +361,7 @@ Une ligne tarifaire.""" ...@@ -361,6 +361,7 @@ Une ligne tarifaire."""
ordered list ordered list
""" """
result = getattr(self,'template_catalog_method_id',()) result = getattr(self,'template_catalog_method_id',())
if result is None: result = ()
if result != (): if result != ():
result = list(result) result = list(result)
result.sort() result.sort()
......
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