Skip to content

Commit

Permalink
Fix: Fixes after peer review for #833
Browse files Browse the repository at this point in the history
  • Loading branch information
josepereira245 committed Jan 15, 2019
1 parent 2ac6ae6 commit 7406670
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion code/Model/EditableFormField/EditableTextField.php
Expand Up @@ -109,7 +109,7 @@ public function validate()
$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;
Expand Down
1 change: 1 addition & 0 deletions lang/en.yml
Expand Up @@ -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:
Expand Down

0 comments on commit 7406670

Please sign in to comment.