From 386599ae4c9ae6e411e731b2b951bb45658e80d9 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Fri, 25 Nov 2022 13:47:48 +1300 Subject: [PATCH] Pass correct variable type to the hook The variable type for 'rows' is an array, not null. Fix to pass an empty array. I renamed it to 'rows' since that is what the hook calls it & it is just a dummy variable from the page's point of view --- CRM/Contact/Page/View/Relationship.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CRM/Contact/Page/View/Relationship.php b/CRM/Contact/Page/View/Relationship.php index 0255f4137c..1b5ce20828 100644 --- a/CRM/Contact/Page/View/Relationship.php +++ b/CRM/Contact/Page/View/Relationship.php @@ -146,7 +146,8 @@ class CRM_Contact_Page_View_Relationship extends CRM_Core_Page { public function browse() { // do nothing :) we are using datatable for rendering relationship selectors $columnHeaders = CRM_Contact_BAO_Relationship::getColumnHeaders(); - $contactRelationships = $selector = NULL; + $selector = NULL; + $contactRelationships = []; CRM_Utils_Hook::searchColumns('relationship.columns', $columnHeaders, $contactRelationships, $selector); $this->assign('columnHeaders', $columnHeaders); } -- 2.25.1