diff options
author | Steven Day <steve@mysociety.org> | 2014-05-01 15:27:22 +0100 |
---|---|---|
committer | Steven Day <steve@mysociety.org> | 2014-05-01 15:27:22 +0100 |
commit | a1612b03fa7a771fed0b181a5a0bca25da3730d9 (patch) | |
tree | 592f9081e2350d00add75b11380cadbd6b199337 /perllib | |
parent | 177ad0fe42f7474296287b448b485aa452e583f3 (diff) |
Fix missing subcategory_line that was breaking email sending
subcategory_line is optional in seesomethingsaysomething, so we need to set
it to something (a blank line is what I've chosen) otherwise email sending
breaks when it tries to template up the email message
Diffstat (limited to 'perllib')
-rw-r--r-- | perllib/FixMyStreet/DB/ResultSet/Problem.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/DB/ResultSet/Problem.pm b/perllib/FixMyStreet/DB/ResultSet/Problem.pm index 0d40220b2..6da383d6c 100644 --- a/perllib/FixMyStreet/DB/ResultSet/Problem.pm +++ b/perllib/FixMyStreet/DB/ResultSet/Problem.pm @@ -348,6 +348,8 @@ sub send_reports { if ( $row->subcategory ) { $h{subcategory_line} = sprintf(_("Subcategory: %s"), $row->subcategory) . "\n\n"; + } else { + $h{subcategory_line} = "\n\n"; } $h{councils_name} = join(_(' and '), @dear); |