Commit 17483150 authored by Nicolas Delaby's avatar Nicolas Delaby

delete unnecessary condition

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40761 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7fce3101
......@@ -318,11 +318,10 @@ class MultiRelationStringFieldWidget(Widget.LinesTextAreaWidget,
kw[k] = v
accessor_name = 'get%sValueList' % ''.join([part.capitalize() for part in base_category.split('_')])
jump_reference_list = getattr(here, accessor_name)(portal_type=portal_type, filter=kw)
if len(jump_reference_list):
for jump_reference in jump_reference_list:
string_list.append('<a href="%s">%s</a>' % \
(jump_reference.absolute_url(),
jump_reference.getTitle()))
for jump_reference in jump_reference_list:
string_list.append('<a href="%s">%s</a>' % \
(jump_reference.absolute_url(),
jump_reference.getTitle()))
html_string = '<br />'.join(string_list)
else:
html_string = self.default_widget_rendering_instance.render_view(field,
......
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