Skip to content

Commit

Permalink
Add SQL modes to developer tab
Browse files Browse the repository at this point in the history
  • Loading branch information
eileenmcnaughton committed Aug 14, 2018
1 parent 7432a41 commit 911eb44
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CRM/Report/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -1411,6 +1411,8 @@ public function addToDeveloperTab($sql) {
$this->sqlFormattedArray[] = $sql;
$this->assign('sql', implode(';<br><br><br><br>', $this->sqlFormattedArray));
}
$this->assign('sqlModes', $sqlModes = CRM_Utils_SQL::getSqlModes());

}

/**
Expand Down
7 changes: 6 additions & 1 deletion templates/CRM/Report/Form/Tabs/Developer.tpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<div id="report-tab-set-developer" class="civireport-criteria">
<p><b>{ts}Class used{/ts}: {$report_class}</b></p>
<p><b>{ts}Class used{/ts}: {$report_class|escape}</b></p>
<p>{ts}SQL Modes{/ts}:
{foreach from=$sqlModes item=sqlMode}
{$sqlMode|escape}
{/foreach}
</p>
<pre>{$sql|purify}</pre>
</div>

0 comments on commit 911eb44

Please sign in to comment.