mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 08:55:54 +00:00
trim values in value set when retrieving it
This commit is contained in:
parent
3e505cabc9
commit
f1bd74426e
|
@ -553,7 +553,7 @@ class SeedDMS_Core_AttributeDefinition { /* {{{ */
|
|||
*/
|
||||
function getValueSetAsArray() { /* {{{ */
|
||||
if(strlen($this->_valueset) > 1)
|
||||
return explode($this->_valueset[0], substr($this->_valueset, 1));
|
||||
return array_map('trim', explode($this->_valueset[0], substr($this->_valueset, 1)));
|
||||
else
|
||||
return array();
|
||||
} /* }}} */
|
||||
|
@ -569,7 +569,7 @@ class SeedDMS_Core_AttributeDefinition { /* {{{ */
|
|||
if(strlen($this->_valueset) > 1) {
|
||||
$tmp = explode($this->_valueset[0], substr($this->_valueset, 1));
|
||||
if(isset($tmp[$ind]))
|
||||
return $tmp[$ind];
|
||||
return trim($tmp[$ind]);
|
||||
else
|
||||
return false;
|
||||
} else
|
||||
|
|
Loading…
Reference in New Issue
Block a user