From 758ce0a24d6340348cb7c59cb172bf9d73e9be2d Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Thu, 27 Oct 2016 17:47:47 +0200 Subject: [PATCH] validate() returns early if error was found --- SeedDMS_Core/Core/inc.ClassAttribute.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SeedDMS_Core/Core/inc.ClassAttribute.php b/SeedDMS_Core/Core/inc.ClassAttribute.php index 9962c0d81..64b2b6afc 100644 --- a/SeedDMS_Core/Core/inc.ClassAttribute.php +++ b/SeedDMS_Core/Core/inc.ClassAttribute.php @@ -956,6 +956,9 @@ class SeedDMS_Core_AttributeDefinition { /* {{{ */ break; } + if(!$success) + return $success; + /* Check if value is in value set */ if($valueset = $this->getValueSetAsArray()) { foreach($values as $value) {