Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit a1612b03fa7a771fed0b181a5a0bca25da3730d9 1 parent 177ad0f
@stevenday stevenday authored
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);
Please sign in to comment.
Something went wrong with that request. Please try again.