mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-11 16:35:38 +00:00
fix setting multi value attributes for a version
This commit is contained in:
parent
631f3e151f
commit
510e177391
|
@ -1204,7 +1204,8 @@ class SeedDMS_Core_Document extends SeedDMS_Core_Object { /* {{{ */
|
|||
|
||||
if($attributes) {
|
||||
foreach($attributes as $attrdefid=>$attribute) {
|
||||
if(trim($attribute))
|
||||
/* $attribute can be a string or an array */
|
||||
if($attribute)
|
||||
if(!$content->setAttributeValue($this->_dms->getAttributeDefinition($attrdefid), $attribute)) {
|
||||
$this->removeContent($content);
|
||||
$db->rollbackTransaction();
|
||||
|
|
Loading…
Reference in New Issue
Block a user