Fix Calc
This commit is contained in:
parent
98b38468f7
commit
00c0fdfbb4
@ -42,10 +42,10 @@ class Valid
|
|||||||
foreach($this->article->getOptions() as $option) {
|
foreach($this->article->getOptions() as $option) {
|
||||||
if($option instanceof Input) {
|
if($option instanceof Input) {
|
||||||
if($option->getMaxValue() && $option->getMaxValue() <= $option->getRawValue()) {
|
if($option->getMaxValue() && $option->getMaxValue() <= $option->getRawValue()) {
|
||||||
$option->addValidationError(new Max($option->getRawValue(), $option->getMaxValue()));
|
$option->addValidationError(new Max(intval($option->getRawValue()), $option->getMaxValue()));
|
||||||
}
|
}
|
||||||
if($option->getMinValue() && $option->getMinValue() >= $option->getRawValue()) {
|
if($option->getMinValue() && $option->getMinValue() >= $option->getRawValue()) {
|
||||||
$option->addValidationError(new Min($option->getRawValue(), $option->getMinValue()));
|
$option->addValidationError(new Min(intval($option->getRawValue()), $option->getMinValue()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if($option instanceof Select|| $option instanceof Checkbox) {
|
if($option instanceof Select|| $option instanceof Checkbox) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user