Commit 96229d44 authored by Rafael Monnerat's avatar Rafael Monnerat

resolveCategory has to used just for categories.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10357 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6228ed91
......@@ -74,9 +74,7 @@ class ObjectMessage:
if request is not None:
for item in request:
if item.meta_type == 'ERP5 Site':
portal = item
portal_categories = getToolByName(portal, 'portal_categories')
return portal_categories.resolveCategory(self.object_relative_url)
return item.restrictedTraverse(self.object_relative_url)
return None
......
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