diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2019-02-08 11:03:57 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2019-02-08 14:05:10 +0000 |
commit | d8d3da1119e41fd7a57a4664e92a644ba1a9c919 (patch) | |
tree | 54e7e4bb5a35173ae866d43a63c01817e50105b4 | |
parent | a605865fea720fdaeeecb65cc80223137eda4263 (diff) |
[Oxfordshire] Limit appears to be lower than 70.
-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 bc85bb090..63e52dc20 100644 --- a/perllib/FixMyStreet/Cobrand/Oxfordshire.pm +++ b/perllib/FixMyStreet/Cobrand/Oxfordshire.pm @@ -17,8 +17,8 @@ sub report_validation { $errors->{detail} = sprintf( _('Reports are limited to %s characters in length. Please shorten your report'), 1700 ); } - if ( length( $report->name ) > 70 ) { - $errors->{name} = sprintf( 'Names are limited to %d characters in length.', 70 ); + if ( length( $report->name ) > 50 ) { + $errors->{name} = sprintf( 'Names are limited to %d characters in length.', 50 ); } if ( length( $report->user->phone ) > 30 ) { diff --git a/t/app/controller/report_new.t b/t/app/controller/report_new.t index 6dc659c19..66b802873 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 70 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 30 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 855d23de9..b13b9be13 100644 --- a/web/cobrands/fixmystreet-uk-councils/council_validation_rules.js +++ b/web/cobrands/fixmystreet-uk-councils/council_validation_rules.js @@ -35,7 +35,7 @@ body_validation_rules = { }, name: { required: true, - maxlength: 70 + maxlength: 50 }, phone: { maxlength: 30 |