Commit 2732904f authored by Nicolas Delaby's avatar Nicolas Delaby

With vhost rewriting the path differ from physical one.

So split the url and take the last part to fetch the form_id

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33273 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 79ef08f6
......@@ -59,7 +59,7 @@ def Base_updatePropertyMapListWithFieldLabel(self, property_map_list):
if 'view' in action.getActionType()]
action_url_list = [action_view_url(createExpressionContext(self))\
for action_view_url in action_view_url_list]
form_id_list = [urlparse(action_url)[2].replace('%s/' % self.getPath(), '') \
form_id_list = [urlparse(action_url)[2].split('/')[-1] \
for action_url in action_url_list]
for property_map in property_map_list:
label = None
......
11
\ No newline at end of file
12
\ No newline at end of file
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