mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
Fix: Fixes after peer review for #833
This commit is contained in:
parent
2ac6ae6a47
commit
7406670003
@ -109,7 +109,7 @@ class EditableTextField extends EditableFormField
|
||||
$result = parent::validate();
|
||||
|
||||
if ($this->MinLength > $this->MaxLength) {
|
||||
$result->addError("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;
|
||||
|
@ -208,6 +208,7 @@ en:
|
||||
RANGE_TO: to
|
||||
SINGULARNAME: 'Text Field'
|
||||
TEXTLENGTH: 'Allowed text length'
|
||||
MINMAXLENGTHCHECK: 'Minimum length should be less than the Maximum length.'
|
||||
SilverStripe\UserForms\Model\EditableFormField\Validator:
|
||||
REQUIRED_ERROR: 'Form fields cannot be required and have conditional display rules.'
|
||||
SilverStripe\UserForms\Model\Recipient\EmailRecipient:
|
||||
|
Loading…
Reference in New Issue
Block a user