Skip to content
This repository
Browse code

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
Steven Day stevenday authored

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. +2 0  perllib/FixMyStreet/DB/ResultSet/Problem.pm
2  perllib/FixMyStreet/DB/ResultSet/Problem.pm
@@ -348,6 +348,8 @@ sub send_reports {
348 348
349 349 if ( $row->subcategory ) {
350 350 $h{subcategory_line} = sprintf(_("Subcategory: %s"), $row->subcategory) . "\n\n";
  351 + } else {
  352 + $h{subcategory_line} = "\n\n";
351 353 }
352 354
353 355 $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.