Skip to content

Commit

Permalink
change username to name_official to match combobox
Browse files Browse the repository at this point in the history
  • Loading branch information
remdex committed May 2, 2017
1 parent fcff178 commit a6806fd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function drawChart() {
var data = google.visualization.arrayToDataTable([
['<?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/statistic','User');?>', '<?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/statistic','Thumbs up');?>']
<?php foreach ($userStats['thumbsup'] as $data) : ?>
<?php echo ',[\''.htmlspecialchars(erLhcoreClassModelUser::fetch($data['user_id'],true)->username,ENT_QUOTES).'\','.$data['number_of_chats'].']'?>
<?php echo ',[\''.htmlspecialchars(erLhcoreClassModelUser::fetch($data['user_id'],true)->name_official,ENT_QUOTES).'\','.$data['number_of_chats'].']'?>
<?php endforeach;?>
]);
var view = new google.visualization.DataView(data);
Expand All @@ -105,7 +105,7 @@ function drawChart() {
var data = google.visualization.arrayToDataTable([
['<?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/statistic','User');?>','<?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/statistic','Thumbs down');?>']
<?php foreach ($userStats['thumbdown'] as $data) : ?>
<?php echo ',[\''.htmlspecialchars(erLhcoreClassModelUser::fetch($data['user_id'],true)->username,ENT_QUOTES).'\','.$data['number_of_chats'].']'?>
<?php echo ',[\''.htmlspecialchars(erLhcoreClassModelUser::fetch($data['user_id'],true)->name_official,ENT_QUOTES).'\','.$data['number_of_chats'].']'?>
<?php endforeach;?>
]);
var view = new google.visualization.DataView(data);
Expand Down

0 comments on commit a6806fd

Please sign in to comment.