3sd / civicrm-recalculate-recipients

Moved to https://lab.civicrm.org/extensions/civicrm-recalculate-recipients
Other
6 stars 5 forks source link

If a Mailing is deleted after the mailing has been started an exception will occur #6

Closed lolcodeca closed 6 years ago

lolcodeca commented 6 years ago

If a Mailing is deleted after the mailing has been started an exception will occur on this line. This was an issue in the system I am working with due to invalid data. It just needs to be wrapped in a try-catch.

$mailing = civicrm_api3('mailing', 'getsingle', ['id' => $mailing_id]);

michaelmcandrew commented 6 years ago

fixed with https://github.com/3sd/civicrm-recalculate-recipients/commit/c796823520ff795dd79ce1f5a302ccfe4e14e882. thanks @lolcodeca :)