|
@@ -41,7 +41,7 @@ |
|
|
block discarded – undo |
|
41
|
41
|
$maximumLength = $this->getFieldModel()->getMaxValue(); |
|
42
|
42
|
if ($maximumLength && \App\TextUtils::getTextLength($value, true) > $maximumLength) { |
|
43
|
43
|
throw new \App\Exceptions\Security('ERR_VALUE_IS_TOO_LONG||' . $this->getFieldModel()->getName() . '||' . $this->getFieldModel()->getModuleName() . '||' . $value, 406); |
|
44
|
|
- } elseif ($value && ($minLength = $this->getFieldModel()->getMinValue()) && \App\TextUtils::getTextLength($value, true) < $minLength){ |
|
|
44
|
+ } elseif ($value && ($minLength = $this->getFieldModel()->getMinValue()) && \App\TextUtils::getTextLength($value, true) < $minLength) { |
|
45
|
45
|
throw new \App\Exceptions\Security('ERR_VALUE_IS_TOO_SHORT||' . $this->getFieldModel()->getName() . '||' . $this->getFieldModel()->getModuleName() . '||' . $value, 406); |
|
46
|
46
|
} |
|
47
|
47
|
$this->validate[$value] = true; |
Please login to merge, or discard this patch.