mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
FIX Fixes #850 Considered location following peer feedback
This commit is contained in:
parent
ca06f000a1
commit
d917262565
@ -86,7 +86,10 @@ class EditableNumericField extends EditableFormField
|
|||||||
{
|
{
|
||||||
$result = parent::validate();
|
$result = parent::validate();
|
||||||
if ($this->MinValue > $this->MaxValue) {
|
if ($this->MinValue > $this->MaxValue) {
|
||||||
$result->addError("Minimum length should be less than the Maximum length.");
|
$result->addError(
|
||||||
|
|
||||||
|
_t(__CLASS__ . '.ORDER_WARNING', 'Minimum length should be less than the maximum length.')
|
||||||
|
);
|
||||||
}
|
}
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user