pass flag $new=true to validate()

This commit is contained in:
Uwe Steinmann 2022-07-27 09:32:59 +02:00
parent 1f6a509876
commit c21467a24d

View File

@ -88,7 +88,7 @@ class SeedDMS_Controller_AddDocument extends SeedDMS_Controller_Common {
$attribute = date('Y-m-d', makeTsFromDate($attribute)); $attribute = date('Y-m-d', makeTsFromDate($attribute));
break; break;
} }
if(!$attrdef->validate($attribute)) { if(!$attrdef->validate($attribute, null, true)) {
$this->errormsg = getAttributeValidationError($attrdef->getValidationError(), $attrdef->getName(), $attribute); $this->errormsg = getAttributeValidationError($attrdef->getValidationError(), $attrdef->getName(), $attribute);
return false; return false;
} }