mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
check for min number of attribute values
This commit is contained in:
parent
ad00b1cbe6
commit
b8fa88b674
|
@ -63,6 +63,8 @@ class SeedDMS_Controller_EditFolder extends SeedDMS_Controller_Common {
|
|||
if(!$folder->setAttributeValue($dms->getAttributeDefinition($attrdefid), $attribute))
|
||||
return false;
|
||||
}
|
||||
} elseif($attrdef->getMinValues() > 0) {
|
||||
$this->errormsg = getMLText("attr_min_values", array("attrname"=>$attrdef->getName()));
|
||||
} elseif(isset($oldattributes[$attrdefid])) {
|
||||
if(!$folder->removeAttribute($dms->getAttributeDefinition($attrdefid)))
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue
Block a user