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));
break;
}
if(!$attrdef->validate($attribute)) {
if(!$attrdef->validate($attribute, null, true)) {
$this->errormsg = getAttributeValidationError($attrdef->getValidationError(), $attrdef->getName(), $attribute);
return false;
}