From 25fcaed154d5f5b719047e61c3610bfea0b95655 Mon Sep 17 00:00:00 2001 From: Remdex Date: Tue, 2 May 2017 10:22:32 +0200 Subject: [PATCH] change username to name_official to match combobox v2 --- .../defaulttheme/tpl/lhstatistic/tabs/active.tpl.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lhc_web/design/defaulttheme/tpl/lhstatistic/tabs/active.tpl.php b/lhc_web/design/defaulttheme/tpl/lhstatistic/tabs/active.tpl.php index eeec3a04d7..99c98b7fa7 100644 --- a/lhc_web/design/defaulttheme/tpl/lhstatistic/tabs/active.tpl.php +++ b/lhc_web/design/defaulttheme/tpl/lhstatistic/tabs/active.tpl.php @@ -145,7 +145,7 @@ function drawChartUser() { var data = google.visualization.arrayToDataTable([ ['getTranslation('chat/statistic','User');?>','getTranslation('chat/statistic','Chats');?>'] - username : $data['user_id']),ENT_QUOTES).'\','.$data['number_of_chats'].']'?> + name_official : $data['user_id']),ENT_QUOTES).'\','.$data['number_of_chats'].']'?> ]); var options = { @@ -164,7 +164,7 @@ function drawChartUserAverage() { var data = google.visualization.arrayToDataTable([ ['getTranslation('chat/statistic','User');?>','getTranslation('chat/statistic','Average in seconds');?>'] - username : $data['user_id']),ENT_QUOTES).'\','.$data['avg_chat_duration'].']'?> + name_official : $data['user_id']),ENT_QUOTES).'\','.$data['avg_chat_duration'].']'?> ]); var options = { @@ -183,7 +183,7 @@ function drawChartUserAVGWaitTime() { var data = google.visualization.arrayToDataTable([ ['getTranslation('chat/statistic','User');?>','getTranslation('chat/statistic','Wait time');?>'] - username : $data['user_id']),ENT_QUOTES).'\','.$data['avg_wait_time'].']'?> + name_official : $data['user_id']),ENT_QUOTES).'\','.$data['avg_wait_time'].']'?> ]); var options = { @@ -212,7 +212,7 @@ function drawChartUserMessages() { } else { $operatorObj = erLhcoreClassModelUser::fetch($data['user_id'],true); if (is_object($operatorObj) ) { - $operator = $operatorObj->username; + $operator = $operatorObj->name_official; } else { $operator = '['.$data['user_id'].']'; }