Fixed notice error on Relationships report
authorPradeep Nayak <pradpnayak@gmail.com>
Fri, 10 Jul 2020 23:49:41 +0000 (00:49 +0100)
committerPradeep Nayak <pradpnayak@gmail.com>
Fri, 10 Jul 2020 23:49:41 +0000 (00:49 +0100)
CRM/Report/Form/Contact/Relationship.php

index d6873e340881ebd4265e286cd6e3113ebfe4814a..e9857ecf8e0621548182fc613ad247491ed27763 100644 (file)
@@ -250,6 +250,7 @@ class CRM_Report_Form_Contact_Relationship extends CRM_Report_Form {
           ],
           'is_active' => [
             'title' => ts('Is active?'),
+            'type' => CRM_Utils_Type::T_BOOLEAN,
           ],
           'relationship_id' => [
             'title' => ts('Rel ID'),
@@ -772,8 +773,6 @@ 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) {