Commit 39dd4210 authored by Xiaowu Zhang's avatar Xiaowu Zhang Committed by Ayush Tiwari

Listbox: stay in current object when not defined

parent f87704ac
...@@ -2345,9 +2345,8 @@ class ListBoxHTMLRendererLine(ListBoxRendererLine): ...@@ -2345,9 +2345,8 @@ class ListBoxHTMLRendererLine(ListBoxRendererLine):
except TypeError: except TypeError:
result_dict[key] = value() result_dict[key] = value()
if result_dict: if result_dict:
#this one is not good, should get restrivedocumet's path
if 'jio_key' not in result_dict: if 'jio_key' not in result_dict:
url = request.physicalPathToURL(brain.getPath()) url = ''
else: else:
url = self.getObject().getPortalObject().restrictedTraverse(result_dict['jio_key']).absolute_url() url = self.getObject().getPortalObject().restrictedTraverse(result_dict['jio_key']).absolute_url()
if 'parameter' in result_dict: if 'parameter' in result_dict:
......
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