From fae218777b4cda463f9cbd50c483811479ffdfb6 Mon Sep 17 00:00:00 2001 From: eileenmcnaugton Date: Fri, 6 Jan 2017 17:21:43 +1300 Subject: [PATCH] CRM-19839 Declare class used on developer tab of CiviCRM reports --- CRM/Report/Form.php | 1 + templates/CRM/Report/Form/Tabs/Developer.tpl | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CRM/Report/Form.php b/CRM/Report/Form.php index 97e0e7e34f..307676342a 100644 --- a/CRM/Report/Form.php +++ b/CRM/Report/Form.php @@ -3112,6 +3112,7 @@ WHERE cg.extends IN ('" . implode("','", $this->_customGroupExtends) . "') AND * @param array|null $rows */ public function endPostProcess(&$rows = NULL) { + $this->assign('report_class', get_class($this)); if ($this->_storeResultSet) { $this->_resultSet = $rows; } diff --git a/templates/CRM/Report/Form/Tabs/Developer.tpl b/templates/CRM/Report/Form/Tabs/Developer.tpl index 47d9cccebe..774f5c7b5f 100644 --- a/templates/CRM/Report/Form/Tabs/Developer.tpl +++ b/templates/CRM/Report/Form/Tabs/Developer.tpl @@ -1,3 +1,4 @@
-
{$sql}
+

{ts}Class used{/ts}: {$report_class}

+
{$sql}
-- 2.25.1