From 62ec4c67d4ab643c7ae1441e43d5bdb38d1a46eb Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Mon, 12 Jul 2021 20:11:31 +1200 Subject: [PATCH] E-notice fix --- CRM/Report/Page/TemplateList.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/CRM/Report/Page/TemplateList.php b/CRM/Report/Page/TemplateList.php index ceb68a0a7b..289b817598 100644 --- a/CRM/Report/Page/TemplateList.php +++ b/CRM/Report/Page/TemplateList.php @@ -78,11 +78,10 @@ LEFT JOIN civicrm_component comp $rows[$dao->component_name][$dao->value]['title'] = ts($dao->label); $rows[$dao->component_name][$dao->value]['description'] = ts($dao->description); $rows[$dao->component_name][$dao->value]['url'] = CRM_Utils_System::url('civicrm/report/' . trim($dao->value, '/'), 'reset=1'); - if ($dao->instance_id) { - $rows[$dao->component_name][$dao->value]['instanceUrl'] = CRM_Utils_System::url('civicrm/report/list', - "reset=1&ovid={$dao->id}" - ); - } + $rows[$dao->component_name][$dao->value]['instanceUrl'] = $dao->instance_id ? CRM_Utils_System::url( + 'civicrm/report/list', + "reset=1&ovid=$dao->id" + ) : ''; } return $rows; -- 2.25.1