From 2123ee37471ed28d4dfe06abbc11e8fbd37fa651 Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Wed, 10 Nov 2021 11:07:32 -0500 Subject: [PATCH] smarty warning --- CRM/Report/Form/Contribute/History.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CRM/Report/Form/Contribute/History.php b/CRM/Report/Form/Contribute/History.php index 76b798f741..7c1ddb6d7d 100644 --- a/CRM/Report/Form/Contribute/History.php +++ b/CRM/Report/Form/Contribute/History.php @@ -825,6 +825,11 @@ class CRM_Report_Form_Contribute_History extends CRM_Report_Form { $rows[$rowNum] = $row; } + // The main rows don't have this set so gives a smarty warning. + if (!isset($row['civicrm_relationship_relationship_type_id'])) { + $rows[$rowNum]['civicrm_relationship_relationship_type_id'] = ''; + } + // Convert Display name into link if (!empty($row['civicrm_contact_sort_name']) && !empty($row['civicrm_contact_id']) -- 2.25.1