init separator and validation error in constructor

This commit is contained in:
Uwe Steinmann 2021-09-16 16:12:27 +02:00
parent ffe4b50c7f
commit c50be6d215

View File

@ -486,10 +486,10 @@ class SeedDMS_Core_AttributeDefinition { /* {{{ */
$this->_minvalues = $minvalues;
$this->_maxvalues = $maxvalues;
$this->_valueset = $valueset;
$this->_separator = '';
$this->_separator = substr($valueset, 0, 1);
$this->_regex = $regex;
$this->_dms = null;
$this->_validation_error = 0;
$this->_validation_error = SeedDMS_Core_AttributeDefinition::val_error_none;
} /* }}} */
/**