mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 15:05:42 +00: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();
|
||||
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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user