mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-15 06:01:19 +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);
|
$this->errormsg = getAttributeValidationError($attrdef->getValidationError(), $attrdef->getName(), $attribute);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
} elseif($attrdef->getMinValues() > 0) {
|
||||||
|
$this->errormsg = array("attr_min_values", array("attrname"=>$attrdef->getName()));
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if($ret === false)
|
if($ret === false)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user