mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-07-15 08:58:10 +00:00
treat empty attribute value as no value in validate()
This commit is contained in:
parent
44dbf74c57
commit
a32a5c929a
|
@ -863,8 +863,10 @@ class SeedDMS_Core_AttributeDefinition { /* {{{ */
|
||||||
$values = explode($attrvalue[0], substr($attrvalue, 1));
|
$values = explode($attrvalue[0], substr($attrvalue, 1));
|
||||||
else
|
else
|
||||||
$values = $attrvalue;
|
$values = $attrvalue;
|
||||||
} else {
|
} elseif($attrvalue) {
|
||||||
$values = array($attrvalue);
|
$values = array($attrvalue);
|
||||||
|
} else {
|
||||||
|
$values = array();
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->_validation_error = 0;
|
$this->_validation_error = 0;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user