mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
FIX: Fixes #833 fixes after peer review
This commit is contained in:
parent
7406670003
commit
4ebcfccf44
@ -109,13 +109,15 @@ class EditableTextField extends EditableFormField
|
||||
$result = parent::validate();
|
||||
|
||||
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 FieldList
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user