aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perllib/FixMyStreet/Cobrand/Oxfordshire.pm4
-rw-r--r--t/app/controller/report_new.t2
-rw-r--r--web/cobrands/fixmystreet-uk-councils/council_validation_rules.js2
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