From 9b9af7771d887ea10f8660cee4aae4a71732e8d8 Mon Sep 17 00:00:00 2001 From: Cyrus Hiatt Date: Wed, 3 Apr 2019 11:18:37 -0700 Subject: [PATCH] Fixes bug in unique validation. re #4725 --- arches/app/models/tile.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arches/app/models/tile.py b/arches/app/models/tile.py index 14b1e34c92e..ff11ca01b31 100644 --- a/arches/app/models/tile.py +++ b/arches/app/models/tile.py @@ -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))