Commit 59b03862 authored by Sebastien Robin's avatar Sebastien Robin

corrected a non defined variable


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1053 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a76dff2f
......@@ -116,6 +116,7 @@ class RelationStringFieldWidget(Widget.TextWidget):
"""Render text input field.
"""
html_string = Widget.TextWidget.render_view(self, field, value)
portal_url_string = getToolByName(here, 'portal_url')()
if value not in ('', None):
html_string += '&nbsp;&nbsp;<a href="%s/%s?field_id=%s&form_id=%s"><img src="%s/images/jump.png"></a>' \
% (here.absolute_url(), field.get_value('jump_method'), field.id, field.aq_parent.id,portal_url_string)
......
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