Commit 635cf7d2 authored by Rafael Monnerat's avatar Rafael Monnerat

Fixed url generation, following http://www.erp5.org/GuidelinesForUrlGeneration



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19228 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 48674c62
...@@ -1867,6 +1867,9 @@ class BasicGroup: ...@@ -1867,6 +1867,9 @@ class BasicGroup:
#else: #else:
# url = object.getUrl() # url = object.getUrl()
url = object.getUrl() url = object.getUrl()
if url is not None:
# View is considered the default action from one object
url += "/view"
# XXX should define height of block here # XXX should define height of block here
#height = None #height = None
...@@ -1958,6 +1961,9 @@ class BasicGroup: ...@@ -1958,6 +1961,9 @@ class BasicGroup:
# get object url, not group url # get object url, not group url
url = self.object.getObject().getUrl() url = self.object.getObject().getUrl()
if url is not None:
# View is considered the default action from one object
url += "/view"
# creating new activity instance # creating new activity instance
activity=BasicActivity(title=info['info_center'], name=name, activity=BasicActivity(title=info['info_center'], name=name,
......
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