Commit da4d6037 authored by Nicolas Delaby's avatar Nicolas Delaby

attr must be a string type

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16778 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 001ca9bc
......@@ -495,7 +495,7 @@ class SelectionTool( BaseTool, UniqueObject, SimpleItem ):
default_stats = [' '] * 6
selection = self.getSelectionFor(selection_name, REQUEST=REQUEST)
if selection is not None:
return getattr(selection, stats, default_stats)
return getattr(selection, 'stats', default_stats)
return default_stats
......
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