Skip to content
Snippets Groups Projects
Commit 59e91136 authored by anonymous's avatar anonymous
Browse files

fix validation bug

parent 2b3e487c
No related branches found
No related tags found
No related merge requests found
......@@ -52,7 +52,7 @@ def validate_extra_groups(data, requireAtLeastOne, errors):
data[('groups', num, 'id')] = group
else: # no extra-field 'groups'
# dataset might come from a harvest process
if not data[('groups', 0, 'id')]:
if not data.get(('groups', 0, 'id'), False):
errors['groups']= 'at least one group needed'
def validate_extras(key, data, errors, context):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment