aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet
diff options
context:
space:
mode:
Diffstat (limited to 'perllib/FixMyStreet')
-rw-r--r--perllib/FixMyStreet/Cobrand/Oxfordshire.pm12
1 files changed, 12 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Oxfordshire.pm b/perllib/FixMyStreet/Cobrand/Oxfordshire.pm
index 9c1e541d4..bc85bb090 100644
--- a/perllib/FixMyStreet/Cobrand/Oxfordshire.pm
+++ b/perllib/FixMyStreet/Cobrand/Oxfordshire.pm
@@ -17,6 +17,18 @@ 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->user->phone ) > 30 ) {
+ $errors->{phone} = sprintf( 'Phone numbers are limited to %s characters in length.', 30 );
+ }
+
+ if ( length( $report->user->email ) > 50 ) {
+ $errors->{username} = sprintf( 'Emails are limited to %s characters in length.', 50 );
+ }
+
return $errors;
}