mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-11 16:35:38 +00:00
pass flag $new=true to validate()
This commit is contained in:
parent
1f6a509876
commit
c21467a24d
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user