Commit 939a6504 authored by Nicolas Dumazet's avatar Nicolas Dumazet

Role Informations have no references, remove .getReference() from search_list

This caused a traceback in manage_findResult.
Thanks to Julien for debugging help.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31864 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ad24a8d7
...@@ -92,11 +92,10 @@ class RoleInformation(XMLObject): ...@@ -92,11 +92,10 @@ class RoleInformation(XMLObject):
security.declareProtected(AccessContentsInformation, 'PrincipiaSearchSource') security.declareProtected(AccessContentsInformation, 'PrincipiaSearchSource')
def PrincipiaSearchSource(self): def PrincipiaSearchSource(self):
"""Return keywords for "Find" tab in ZMI""" """Return keywords for "Find" tab in ZMI"""
search_source_list = [self.getReference(), search_source_list = [self.getTitle(),
self.getTitle(), self.getDescription(),
self.getDescription(), self.getConditionText(),
self.getConditionText(), self.getRoleBaseCategoryScriptId()]
self.getRoleBaseCategoryScriptId()]
return ' '.join(filter(None, search_source_list)) return ' '.join(filter(None, search_source_list))
security.declarePrivate("getLocalRolesFor") security.declarePrivate("getLocalRolesFor")
......
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