Skip to content

Commit

Permalink
Fixes bug in unique validation. re #4725
Browse files Browse the repository at this point in the history
  • Loading branch information
chiatt committed Apr 3, 2019
1 parent 9705be0 commit 9b9af77
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arches/app/models/tile.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,8 @@ def check_for_constraint_violation(self, request):
match = True
duplicate_values.append(datatype.get_display_value(tile, node))
else:
return False
match = False
break
if match is True:
message = _('This card violates a unique constraint. The following value is already saved: ')
raise TileValidationError(message + (', ').join(duplicate_values))
Expand Down

0 comments on commit 9b9af77

Please sign in to comment.