Commit 7f6edd2d authored by Nigel Kukard's avatar Nigel Kukard

Cleaned up length validation

parent e7ddc5ab
......@@ -1252,16 +1252,14 @@ sub _init
# Set type
$property->{'validate'}->{'type'} = $validateValue;
# Set length
} elsif ($validateOption eq "length") {
# Length must be > 0
if (
$validateValue < 1
) {
if ($validateValue < 1) {
$self->_log(DATAOBJ_LOG_ERROR,"Property '%s' has an invalid validation type '%s'",$propertyName,
$validateValue);
}
# Set length
$property->{'validate'}->{'length'} = $validateValue;
} elsif ($validateOption eq "params") {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment