From dbab7f84fe5a20863a866ca36d5f69c1c7ec1d4a Mon Sep 17 00:00:00 2001 From: yashodha Date: Thu, 13 Feb 2020 14:06:17 +0530 Subject: [PATCH] add column for report --- CRM/Report/Form/Contact/Relationship.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CRM/Report/Form/Contact/Relationship.php b/CRM/Report/Form/Contact/Relationship.php index 698e3ca513..f2756c3e65 100644 --- a/CRM/Report/Form/Contact/Relationship.php +++ b/CRM/Report/Form/Contact/Relationship.php @@ -248,6 +248,9 @@ class CRM_Report_Form_Contact_Relationship extends CRM_Report_Form { 'description' => [ 'title' => ts('Description'), ], + 'is_active' => [ + 'title' => ts('Is active?'), + ], 'relationship_id' => [ 'title' => ts('Rel ID'), 'name' => 'id', @@ -769,6 +772,8 @@ class CRM_Report_Form_Contact_Relationship extends CRM_Report_Form { $entryFound = TRUE; } + $rows[$rowNum]['civicrm_relationship_is_active'] = $row['civicrm_relationship_is_active'] ? ts('Yes') : ''; + // skip looking further in rows, if first row itself doesn't // have the column we need if (!$entryFound) { -- 2.25.1