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):
security.declareProtected(AccessContentsInformation, 'PrincipiaSearchSource')
def PrincipiaSearchSource(self):
"""Return keywords for "Find" tab in ZMI"""
search_source_list = [self.getReference(),
self.getTitle(),
self.getDescription(),
self.getConditionText(),
self.getRoleBaseCategoryScriptId()]
search_source_list = [self.getTitle(),
self.getDescription(),
self.getConditionText(),
self.getRoleBaseCategoryScriptId()]
return ' '.join(filter(None, search_source_list))
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