diff options
-rw-r--r-- | perllib/FixMyStreet/Cobrand/Oxfordshire.pm | 4 | ||||
-rw-r--r-- | t/app/controller/report_new.t | 2 | ||||
-rw-r--r-- | web/cobrands/fixmystreet-uk-councils/council_validation_rules.js | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Oxfordshire.pm b/perllib/FixMyStreet/Cobrand/Oxfordshire.pm index 63e52dc20..b8dc49f72 100644 --- a/perllib/FixMyStreet/Cobrand/Oxfordshire.pm +++ b/perllib/FixMyStreet/Cobrand/Oxfordshire.pm @@ -21,8 +21,8 @@ sub report_validation { $errors->{name} = sprintf( 'Names are limited to %d characters in length.', 50 ); } - if ( length( $report->user->phone ) > 30 ) { - $errors->{phone} = sprintf( 'Phone numbers are limited to %s characters in length.', 30 ); + if ( length( $report->user->phone ) > 20 ) { + $errors->{phone} = sprintf( 'Phone numbers are limited to %s characters in length.', 20 ); } if ( length( $report->user->email ) > 50 ) { diff --git a/t/app/controller/report_new.t b/t/app/controller/report_new.t index 40264f073..d50a682cf 100644 --- a/t/app/controller/report_new.t +++ b/t/app/controller/report_new.t @@ -612,7 +612,7 @@ foreach my $test ( password_register => '', }, changes => { }, - errors => [ 'Please enter a subject', 'Please enter some details', 'Emails are limited to 50 characters in length.', 'Phone numbers are limited to 30 characters in length.', 'Names are limited to 50 characters in length.'], + errors => [ 'Please enter a subject', 'Please enter some details', 'Emails are limited to 50 characters in length.', 'Phone numbers are limited to 20 characters in length.', 'Names are limited to 50 characters in length.'], }, ) { diff --git a/web/cobrands/fixmystreet-uk-councils/council_validation_rules.js b/web/cobrands/fixmystreet-uk-councils/council_validation_rules.js index b13b9be13..9f50f1055 100644 --- a/web/cobrands/fixmystreet-uk-councils/council_validation_rules.js +++ b/web/cobrands/fixmystreet-uk-councils/council_validation_rules.js @@ -38,7 +38,7 @@ body_validation_rules = { maxlength: 50 }, phone: { - maxlength: 30 + maxlength: 20 }, email: { maxlength: 50 |