From: Coleman Watts Date: Thu, 10 Sep 2020 15:39:25 +0000 (-0400) Subject: Search ext: improve debug output X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8afb20472e567795b65db7fd7becdd3737c9df66;hp=28c2015d6a7b4b00517d74b9df7361b1cf7bc925;p=civicrm-core.git Search ext: improve debug output --- diff --git a/ext/search/ang/search/crmSearch.component.js b/ext/search/ang/search/crmSearch.component.js index 66a14f0f2c..039e74d99a 100644 --- a/ext/search/ang/search/crmSearch.component.js +++ b/ext/search/ang/search/crmSearch.component.js @@ -169,7 +169,10 @@ }) .finally(function() { if (ctrl.debug) { - ctrl.debug.params = JSON.stringify(ctrl.params, null, 2); + ctrl.debug.params = JSON.stringify(_.extend({version: 4}, ctrl.params), null, 2); + if (ctrl.debug.timeIndex) { + ctrl.debug.timeIndex = Number.parseFloat(ctrl.debug.timeIndex).toPrecision(2); + } } }); }