FIX: Fixes #833 fixes after peer review

This commit is contained in:
Jose Pereira 2019-01-16 13:50:16 +13:00
parent 7406670003
commit 4ebcfccf44

View File

@ -109,13 +109,15 @@ class EditableTextField extends EditableFormField
$result = parent::validate(); $result = parent::validate();
if ($this->MinLength > $this->MaxLength) { if ($this->MinLength > $this->MaxLength) {
$result->addError(_t(__CLASS__.'MINMAXLENGTHCHECK', 'Minimum length should be less than the Maximum length.' )); $result->addError(_t(
__CLASS__ . 'MINMAXLENGTHCHECK',
'Minimum length should be less than the Maximum length.'
));
} }
return $result; return $result;
} }
/** /**
* @return FieldList * @return FieldList
*/ */