Commit 8aca7a82 authored by Ivan Tyagov's avatar Ivan Tyagov

Minor code optimisation.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23625 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f775b9fe
......@@ -714,8 +714,7 @@ def MultiItemsWidget_render_items(self, field, key, value, REQUEST, render_prefi
selected_found = {}
items = field.get_value('items',REQUEST=REQUEST, cell=getattr(REQUEST,'cell',None)) # Added request
if not items:
if not isinstance(self, MultiLinkFieldWidget):
if not items and not isinstance(self, MultiLinkFieldWidget):
# multi items widget should have at least one child in order to produce
# valid XHTML; disable it so user can not select it.
# This cannot be applied to MultiLinkFields, which are just some <a>
......
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