From: eileen Date: Tue, 16 Feb 2016 03:32:15 +0000 (+1300) Subject: CRM-17837 add email is on hold to lybunt report options X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=0a618a8dff9a9ca5d655b3b3da9a80aa7f466dea;p=civicrm-core.git CRM-17837 add email is on hold to lybunt report options --- diff --git a/CRM/Report/Form/Contribute/Lybunt.php b/CRM/Report/Form/Contribute/Lybunt.php index 2b9580d60e..02c29aa1f4 100644 --- a/CRM/Report/Form/Contribute/Lybunt.php +++ b/CRM/Report/Form/Contribute/Lybunt.php @@ -168,6 +168,9 @@ class CRM_Report_Form_Contribute_Lybunt extends CRM_Report_Form { 'title' => ts('Email'), 'default' => TRUE, ), + 'on_hold' => array( + 'title' => ts('Email on hold'), + ), ), ), 'civicrm_phone' => array( @@ -779,6 +782,11 @@ class CRM_Report_Form_Contribute_Lybunt extends CRM_Report_Form { $entryFound = TRUE; } } + // Display 'Yes' if the email is on hold (leave blank for no so it stands out better). + if (array_key_exists('civicrm_email_on_hold', $row)) { + $rows[$rowNum]['civicrm_email_on_hold'] = $row['civicrm_email_on_hold'] ? ts('Yes') : ''; + $entryFound = TRUE; + } $entryFound = $this->alterDisplayAddressFields($row, $rows, $rowNum, NULL, 'List all contribution(s)') ? TRUE : $entryFound; $entryFound = $this->alterDisplayContactFields($row, $rows, $rowNum, NULL, 'List all contribution(s)') ? TRUE : $entryFound;