From 55def11f015f399577670caf725fca01e3065d4e Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Tue, 4 Nov 2014 16:54:56 +0100 Subject: [PATCH] fix saving of multi value attributes --- SeedDMS_Core/Core/inc.ClassFolder.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SeedDMS_Core/Core/inc.ClassFolder.php b/SeedDMS_Core/Core/inc.ClassFolder.php index a4ede97ae..fbcabe89f 100644 --- a/SeedDMS_Core/Core/inc.ClassFolder.php +++ b/SeedDMS_Core/Core/inc.ClassFolder.php @@ -750,7 +750,8 @@ class SeedDMS_Core_Folder 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(!$document->setAttributeValue($this->_dms->getAttributeDefinition($attrdefid), $attribute)) { $document->remove(); $db->rollbackTransaction();