Commit 47520e0c authored by Jérome Perrin's avatar Jérome Perrin

don't fail if the stat method doesn't return any results

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6463 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 280d63da
......@@ -1937,7 +1937,8 @@ onChange="submitAction(this.form,'%s/portal_selections/setReportRoot')">
if column is not None:
if column[0] == column[1]:
alias = extended_columns[n][2]
value = getattr(count_results[0],alias,'')
if len(count_results):
value = getattr(count_results[0],alias,'')
else:
value = getattr(here, column[1])
#LOG('ListBox', 0, 'column = %s, value = %s' % (repr(column), repr(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