Commit 6b62e277 authored by Alexandre Boeglin's avatar Alexandre Boeglin

Fixed getCategoryRelativeUrl : base parameter was omitted in recursion.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1897 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 069a922b
......@@ -266,7 +266,7 @@ class Category(Folder):
security.declareProtected(Permissions.AccessContentsInformation,
'getCategoryRelativeUrl')
def getCategoryRelativeUrl(self, base = 0 ):
def getCategoryRelativeUrl(self, base=0 ):
"""
Returns a relative_url of this category relative
to its base category (if base is 0) or to
......@@ -281,7 +281,7 @@ class Category(Folder):
else:
return self.id
else:
return my_parent.getCategoryRelativeUrl() + '/' + self.id
return my_parent.getCategoryRelativeUrl(base=base) + '/' + self.id
else:
if base:
return self.getBaseCategoryId() + '/' + self.id
......
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