return ',' as separator for most attr types, if value map is not set

This commit is contained in:
Uwe Steinmann 2021-09-16 16:12:54 +02:00
parent c50be6d215
commit 32dda4b3e9

View File

@ -692,10 +692,10 @@ class SeedDMS_Core_AttributeDefinition { /* {{{ */
if(strlen($this->_valueset) > 1) { if(strlen($this->_valueset) > 1) {
return $this->_valueset[0]; return $this->_valueset[0];
} elseif($this->_multiple) { } elseif($this->_multiple) {
if($this->_type == SeedDMS_Core_AttributeDefinition::type_user || $this->_type == SeedDMS_Core_AttributeDefinition::type_group) if($this->_type == SeedDMS_Core_AttributeDefinition::type_boolean)
return ',';
else
return ''; return '';
else
return ',';
} else { } else {
return ''; return '';
} }