Commit 99c67eb9 authored by Julien Muchembled's avatar Julien Muchembled

Do not add an extra empty entry to read-only parallel list fields

parent f9e529e6
Pipeline #19728 failed with stage
in 0 seconds
......@@ -24,7 +24,8 @@ for value in value_list:
new_dict['value'] = value
sub_field_list.append(new_dict)
sub_field_list.append(default_sub_field_property_dict)
if not sub_field_list or default_sub_field_property_dict['editable']:
sub_field_list.append(default_sub_field_property_dict)
sub_field_list[0]['title'] = title
return sub_field_list
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