Fix for empty File field not showing when there are no files
Committing on behalf of Dr. Sybren
This commit is contained in:
@@ -362,7 +362,8 @@ def edit(node_id):
|
|||||||
# Extra entries are caused by min_entries=1 in the form
|
# Extra entries are caused by min_entries=1 in the form
|
||||||
# creation.
|
# creation.
|
||||||
field_list = form[prop_name]
|
field_list = form[prop_name]
|
||||||
while len(field_list) > len(db_prop_value):
|
if len(db_prop_value):
|
||||||
|
while len(field_list):
|
||||||
field_list.pop_entry()
|
field_list.pop_entry()
|
||||||
|
|
||||||
for file_data in db_prop_value:
|
for file_data in db_prop_value:
|
||||||
|
Reference in New Issue
Block a user