diff options
author | Matthew Somerville <matthew@mysociety.org> | 2011-05-27 22:51:11 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2011-05-27 22:51:11 +0100 |
commit | 9593e182ca601d8b8a3b4564e9072fa74473823c (patch) | |
tree | f62106f60fa65ed579525460f44276e7ec47cccd /bin/send-reports | |
parent | d9dc9503628a7d2727eb2d492c2f56b00c190c56 (diff) |
Pull request #97, merge multi_area_categories.
Diffstat (limited to 'bin/send-reports')
-rwxr-xr-x | bin/send-reports | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/bin/send-reports b/bin/send-reports index 3517f1ee0..90a6553eb 100755 --- a/bin/send-reports +++ b/bin/send-reports @@ -192,8 +192,13 @@ foreach my $row (@$unsent) { } $h{councils_name} = join(_(' and '), @dear); - $h{multiple} = @dear>1 ? "[ " . _("This email has been sent to both councils covering the location of the problem, as the user did not categorise it; please ignore it if you're not the correct council to deal with the issue, or let us know what category of problem this is so we can add it to our system.") . " ]\n\n" - : ''; + if ($h{category} eq _('Other')) { + $h{multiple} = @dear>1 ? "[ " . _("This email has been sent to both councils covering the location of the problem, as the user did not categorise it; please ignore it if you're not the correct council to deal with the issue, or let us know what category of problem this is so we can add it to our system.") . " ]\n\n" + : ''; + } else { + $h{multiple} = @dear>1 ? "[ " . _("This email has been sent to several councils covering the location of the problem, as the category selected is provided for all of them; please ignore it if you're not the correct council to deal with the issue.") . " ]\n\n" + : ''; + } $h{missing} = ''; if ($missing) { my $name = $areas_info->{$missing}->{name}; |