From 8afb20472e567795b65db7fd7becdd3737c9df66 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Thu, 10 Sep 2020 11:39:25 -0400 Subject: [PATCH] Search ext: improve debug output --- ext/search/ang/search/crmSearch.component.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); + } } }); } -- 2.25.1