mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-09 21:16:07 +00:00
Merge branch 'seeddms-5.0.x' into seeddms-5.1.x
This commit is contained in:
commit
c5a67874cf
|
@ -917,9 +917,14 @@ class SeedDMS_Core_AttributeDefinition { /* {{{ */
|
||||||
*/
|
*/
|
||||||
function validate($attrvalue) { /* {{{ */
|
function validate($attrvalue) { /* {{{ */
|
||||||
if($this->getMultipleValues()) {
|
if($this->getMultipleValues()) {
|
||||||
if(is_string($attrvalue))
|
if(is_string($attrvalue)) {
|
||||||
|
$sep = $attrvalue[0];
|
||||||
|
$vsep = $this->getValueSetSeparator();
|
||||||
|
if($sep == $vsep)
|
||||||
$values = explode($attrvalue[0], substr($attrvalue, 1));
|
$values = explode($attrvalue[0], substr($attrvalue, 1));
|
||||||
else
|
else
|
||||||
|
$values = array($attrvalue);
|
||||||
|
} else
|
||||||
$values = $attrvalue;
|
$values = $attrvalue;
|
||||||
} elseif($attrvalue) {
|
} elseif($attrvalue) {
|
||||||
$values = array($attrvalue);
|
$values = array($attrvalue);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user