aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Mytton <self@hecticjeff.net>2014-01-14 10:09:31 +0000
committerChris Mytton <self@hecticjeff.net>2014-01-14 10:21:22 +0000
commitf117167ce79aefdda63b0cb66c446e941fc28da0 (patch)
tree6b8c6d94ad1b87f7b575944f9d5f69242ba70204
parentc7d8b804cf3585477043cf19912892273963c746 (diff)
[Bromley] Reduce detail field character limit to 1750
"The length of 2000 characters is causing some issues in the underline back office application." Updated to include a comment making it (hopefully) clearer which council this is for - thanks @davewhiteland!
-rw-r--r--perllib/FixMyStreet/DB/Result/Problem.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/DB/Result/Problem.pm b/perllib/FixMyStreet/DB/Result/Problem.pm
index a61649d0d..90c75401e 100644
--- a/perllib/FixMyStreet/DB/Result/Problem.pm
+++ b/perllib/FixMyStreet/DB/Result/Problem.pm
@@ -389,8 +389,9 @@ sub check_for_errors {
}
if ( $self->bodies_str && $self->detail ) {
- if ( $self->bodies_str eq '2482' && length($self->detail) > 2000 ) {
- $errors{detail} = sprintf( _('Reports are limited to %s characters in length. Please shorten your report'), 2000 );
+ # Barnet Council custom character limit.
+ if ( $self->bodies_str eq '2482' && length($self->detail) > 1750 ) {
+ $errors{detail} = sprintf( _('Reports are limited to %s characters in length. Please shorten your report'), 1750 );
}
if ( $self->bodies_str eq '2237' && length($self->detail) > 1700 ) {