fix validating multi value attributes

This commit is contained in:
Uwe Steinmann 2022-04-28 13:29:44 +02:00
parent c8bca55368
commit 8b4fc459ab
2 changed files with 3 additions and 0 deletions

View File

@ -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

View File

@ -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="/">