aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/DB/Result/Problem.pm
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2012-10-03 14:29:56 +0100
committerStruan Donald <struan@exo.org.uk>2012-10-03 14:29:56 +0100
commitfaf97483fc3bd0ced6ed9ef6764427083e9ba6a7 (patch)
tree1eb34ae81892b67ad9e804cd4fce189b7f436601 /perllib/FixMyStreet/DB/Result/Problem.pm
parent0864deac37773c8c7f9d61e0fd1742c617f1cf2b (diff)
limit comment and description length to 2000 characters for bromley
Diffstat (limited to 'perllib/FixMyStreet/DB/Result/Problem.pm')
-rw-r--r--perllib/FixMyStreet/DB/Result/Problem.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/DB/Result/Problem.pm b/perllib/FixMyStreet/DB/Result/Problem.pm
index 7535646ab..376190aff 100644
--- a/perllib/FixMyStreet/DB/Result/Problem.pm
+++ b/perllib/FixMyStreet/DB/Result/Problem.pm
@@ -417,6 +417,11 @@ sub check_for_errors {
$self->category(undef);
}
+ if ( $self->council && $self->detail &&
+ $self->council eq '2482' && length($self->detail) > 2000 ) {
+ $errors{detail} = _('Reports are limited to 2000 characters in length. Please shorten your report');
+ }
+
return \%errors;
}