Commit 2028b01b authored by Jérome Perrin's avatar Jérome Perrin

Bug fix in getListboxDisplayMode, it returned always None to a bad indentation


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3540 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bb0afde3
......@@ -649,13 +649,13 @@ class SelectionTool( UniqueObject, SimpleItem ):
def getListboxDisplayMode(self, selection_name, REQUEST=None):
if REQUEST is None:
REQUEST = get_request()
selection = self.getSelectionFor(selection_name, REQUEST)
selection = self.getSelectionFor(selection_name, REQUEST)
if getattr(selection, 'report_tree_mode', 0):
return 'ReportTreeMode'
elif getattr(selection, 'domain_tree_mode', 0):
return 'DomainTreeMode'
return 'FlatListMode'
if getattr(selection, 'report_tree_mode', 0):
return 'ReportTreeMode'
elif getattr(selection, 'domain_tree_mode', 0):
return 'DomainTreeMode'
return 'FlatListMode'
security.declareProtected(ERP5Permissions.View, 'setListboxDisplayMode')
def setListboxDisplayMode(self, REQUEST,listbox_display_mode, selection_name=None,redirect=0):
......
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