FIX Fixes #850 Considered location following peer feedback

This commit is contained in:
Luke Amos 2019-01-17 09:20:31 +13:00
parent ca06f000a1
commit d917262565
1 changed files with 4 additions and 1 deletions

View File

@ -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;
}