Skip to content

Commit 2be81fd

Browse files
authored
Merge pull request #125 from karenetheridge/topic/fix_text_validation
Text validations were being tested in input, not value!
2 parents fe03f84 + c82f3ec commit 2be81fd

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Changes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2+
Fixed Text validation checking, to allow deflations and transformations
3+
to be applied first.
4+
15
0.40066 Mon Jul 18, 2016
26
Improve Select field option list support
37
Support arrayref-of-arrayref options in a subroutine

lib/HTML/FormHandler/Field/Text.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ sub validate {
4040
my $field = shift;
4141

4242
return unless $field->next::method;
43-
my $value = $field->input;
43+
my $value = $field->value;
4444
# Check for max length
4545
if ( my $maxlength = $field->maxlength ) {
4646
return $field->add_error( $field->get_message('text_maxlength'),

0 commit comments

Comments
 (0)