From fd68e05b046514d897878503494ab35dfbf23fe5 Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Sun, 25 Jul 2021 12:39:11 -0400 Subject: [PATCH] smarty warnings --- CRM/Logging/ReportDetail.php | 1 + templates/CRM/Logging/ReportDetail.tpl | 15 ++------------- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/CRM/Logging/ReportDetail.php b/CRM/Logging/ReportDetail.php index 99ed827d14..bd0676e059 100644 --- a/CRM/Logging/ReportDetail.php +++ b/CRM/Logging/ReportDetail.php @@ -275,6 +275,7 @@ class CRM_Logging_ReportDetail extends CRM_Report_Form { } $this->assign('revertURL', CRM_Report_Utils_Report::getNextUrl($this->detail, "$q&revert=1", FALSE, TRUE)); $this->assign('revertConfirm', ts('Are you sure you want to revert all changes?')); + $this->assign('sections', []); } /** diff --git a/templates/CRM/Logging/ReportDetail.tpl b/templates/CRM/Logging/ReportDetail.tpl index 3b562c64f0..16ca9a5e44 100644 --- a/templates/CRM/Logging/ReportDetail.tpl +++ b/templates/CRM/Logging/ReportDetail.tpl @@ -9,21 +9,10 @@ *}
{if $rows} - {* todo: Is `raw` ever assigned to the template and why would it make a difference as to whether this div is present? The revert confirmation is handled (awkwardly) lower down by javascript $revertConfirm *} - {if $raw} -
-
-
{icon icon="fa-info-circle"}{/icon}
-
- {ts}WARNING: Are you sure you want to revert the below changes?{/ts} -
-
-
- {/if}

{ts 1=$whom_url 2=$whom_name|escape 3=$who_url 4=$who_name|escape 5=$log_date}Change to %2 made by %4 on %5:{/ts}

{if $layout eq 'overlay'} {include file="CRM/Report/Form/Layout/Overlay.tpl"} - {elseif !$chartEnabled || !$chartSupported} + {else} {include file="CRM/Report/Form/Layout/Table.tpl"} {/if} {else} @@ -34,7 +23,7 @@ {if $layout neq 'overlay'} {/if}
-- 2.25.1