diff --git a/src/common/dataforms.py b/src/common/dataforms.py index 995119979..8cc5cc2b9 100644 --- a/src/common/dataforms.py +++ b/src/common/dataforms.py @@ -679,8 +679,8 @@ class SimpleDataForm(DataForm, DataRecord): f.value = '' # Keep all required fields continue - if (hasattr(f, 'value') and not f.value) or (hasattr(f, 'values') \ - and len(f.values) == 0): + if (hasattr(f, 'value') and not f.value and f.value != 0) or ( + hasattr(f, 'values') and len(f.values) == 0): to_be_removed.append(f) else: del f.label