Skip to content
Browse files

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
  • Loading branch information...
1 parent 177ad0f commit a1612b03fa7a771fed0b181a5a0bca25da3730d9 @stevenday stevenday committed
Showing with 2 additions and 0 deletions.
  1. +2 −0 perllib/FixMyStreet/DB/ResultSet/Problem.pm
View
2 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);

0 comments on commit a1612b0

Please sign in to comment.
Something went wrong with that request. Please try again.