From 0a618a8dff9a9ca5d655b3b3da9a80aa7f466dea Mon Sep 17 00:00:00 2001 From: eileen Date: Tue, 16 Feb 2016 16:32:15 +1300 Subject: [PATCH] CRM-17837 add email is on hold to lybunt report options --- CRM/Report/Form/Contribute/Lybunt.php | 8 ++++++++ 1 file changed, 8 insertions(+) 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; -- 2.25.1