From 381a1e2b15cc79c2e1559e665bd1e741250672ec Mon Sep 17 00:00:00 2001 From: Remigijus Kiminas Date: Tue, 11 Jul 2023 06:42:03 -0400 Subject: [PATCH] Bigfix --- classes/lhelasticsearchstatistic.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/classes/lhelasticsearchstatistic.php b/classes/lhelasticsearchstatistic.php index b0c93b0..efe3677 100644 --- a/classes/lhelasticsearchstatistic.php +++ b/classes/lhelasticsearchstatistic.php @@ -945,7 +945,11 @@ public static function statisticGetnumberofchatspermonth($params, $aggr = 'month $numberOfChats[$keyDateUnix]['msg_bot'] = 0; } - if (is_array($params['params_execution']['charttypes']) && in_array('msgtype', $params['params_execution']['charttypes'])) { + if (is_array($params['params_execution']['charttypes']) && + in_array('msgtype', $params['params_execution']['charttypes']) || + in_array('msgdelop', $params['params_execution']['charttypes']) || + in_array('msgdelbot', $params['params_execution']['charttypes']) + ) { $sparams = array(); $sparams['index'] = erLhcoreClassModule::getExtensionInstance('erLhcoreClassExtensionElasticsearch')->settings['index_search'] . '-' . erLhcoreClassModelESMsg::$elasticType; $sparams['ignore_unavailable'] = true;