mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-13 13:11:31 +00:00
fix validating multi value attributes
This commit is contained in:
parent
c8bca55368
commit
8b4fc459ab
|
@ -1227,6 +1227,8 @@ class SeedDMS_Core_AttributeDefinition { /* {{{ */
|
||||||
$values = explode($attrvalue[0], substr($attrvalue, 1));
|
$values = explode($attrvalue[0], substr($attrvalue, 1));
|
||||||
else
|
else
|
||||||
$values = array($attrvalue);
|
$values = array($attrvalue);
|
||||||
|
} elseif(is_array($attrvalue)) {
|
||||||
|
$values = $attrvalue;
|
||||||
} elseif(is_string($attrvalue) && !$attrvalue) {
|
} elseif(is_string($attrvalue) && !$attrvalue) {
|
||||||
$values = array();
|
$values = array();
|
||||||
} else
|
} else
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
</stability>
|
</stability>
|
||||||
<license uri="http://opensource.org/licenses/gpl-license">GPL License</license>
|
<license uri="http://opensource.org/licenses/gpl-license">GPL License</license>
|
||||||
<notes>
|
<notes>
|
||||||
|
- fix validating multi value attributes
|
||||||
</notes>
|
</notes>
|
||||||
<contents>
|
<contents>
|
||||||
<dir baseinstalldir="SeedDMS" name="/">
|
<dir baseinstalldir="SeedDMS" name="/">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user