Skip to content

Commit

Permalink
Merge pull request #9646 from eileenmcnaughton/report
Browse files Browse the repository at this point in the history
CRM-19839 Declare class used on developer tab of CiviCRM reports
  • Loading branch information
colemanw authored Jan 9, 2017
2 parents 1b750cf + fae2187 commit 497a23a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CRM/Report/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -3112,6 +3112,7 @@ public function filterStat(&$statistics) {
* @param array|null $rows
*/
public function endPostProcess(&$rows = NULL) {
$this->assign('report_class', get_class($this));
if ($this->_storeResultSet) {
$this->_resultSet = $rows;
}
Expand Down
3 changes: 2 additions & 1 deletion templates/CRM/Report/Form/Tabs/Developer.tpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<div id="report-tab-set-developer" class="civireport-criteria">
<pre>{$sql}</pre>
<p><b>{ts}Class used{/ts}: {$report_class}</b></p>
<pre>{$sql}</pre>
</div>

0 comments on commit 497a23a

Please sign in to comment.