mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 07:04:57 +00:00
return err msg if attribute has not enough values
This commit is contained in:
parent
12675426e6
commit
877a94c37d
|
@ -92,6 +92,9 @@ class SeedDMS_Controller_AddDocument extends SeedDMS_Controller_Common {
|
|||
$this->errormsg = getAttributeValidationError($attrdef->getValidationError(), $attrdef->getName(), $attribute);
|
||||
return false;
|
||||
}
|
||||
} elseif($attrdef->getMinValues() > 0) {
|
||||
$this->errormsg = array("attr_min_values", array("attrname"=>$attrdef->getName()));
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
if($ret === false)
|
||||
|
|
Loading…
Reference in New Issue
Block a user