diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2014-01-30 15:36:22 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2014-01-30 15:36:22 +0000 |
commit | 114659f272d26a646c6f2098cdbe0803843726f4 (patch) | |
tree | a11d00ad4589a2b3e6f131759af7cc185cbda711 /perllib/FixMyStreet/DB/Result/Comment.pm | |
parent | 3f63107eb5f7cc5f6de70826b773de16cedbec1d (diff) |
[Bromley] Reduce update character limit to 1750.
Following on from f117167 (and fixing comment from that commit).
Diffstat (limited to 'perllib/FixMyStreet/DB/Result/Comment.pm')
-rw-r--r-- | perllib/FixMyStreet/DB/Result/Comment.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/DB/Result/Comment.pm b/perllib/FixMyStreet/DB/Result/Comment.pm index 2d5b6b2c3..e170a5655 100644 --- a/perllib/FixMyStreet/DB/Result/Comment.pm +++ b/perllib/FixMyStreet/DB/Result/Comment.pm @@ -126,9 +126,10 @@ sub check_for_errors { $errors{update} = _('Please enter a message') unless $self->text =~ m/\S/; + # Bromley Council custom character limit if ( $self->text && $self->problem && $self->problem->bodies_str - && $self->problem->bodies_str eq '2482' && length($self->text) > 2000 ) { - $errors{update} = _('Updates are limited to 2000 characters in length. Please shorten your update'); + && $self->problem->bodies_str eq '2482' && length($self->text) > 1750 ) { + $errors{update} = sprintf( _('Updates are limited to %s characters in length. Please shorten your update'), 1750 ); } return \%errors; |