- Edited
I have an issue with my dashboard where the graph seems to be working as it should but the statistics is empty aside from the "Service Time". Same for Department, Topics and Agent. I tried looking in to dashboard.inc.php but my understanding of the variables and how it gets the data from the database is not enough to figure out why it isn't working. I'm running the develop-next branch as it has a feature I wanted. I'm not sure if that might have something to do with this. Here's how dashboard.inc.php looks:<?php$first = true;foreach ($groups as $g=>$desc) { $data = $report->getTabularData($g); ?> <div class="tab_content <?php echo (!$first) ? 'hidden' : ''; ?>" id="<?php echo Format:($g); ?>"> <table class="dashboard-stats table"><tbody><tr><?php foreach ($data as $j=>$c) { ?> <th <?php if ($j === 0) echo 'width="30%" class="flush-left"'; ?>><?php echo Format:($c); ?></th><?php } ?> </tr></tbody> <tbody><?php foreach ($data as $i=>$row) { echo '<tr>'; foreach ($row as $j=>$td) { if ($j === 0) { ?> <th class="flush-left"><?php echo Format:($td); ?></th><?php } else { ?> <td><?php echo Format:($td); if ($td) { // TODO Add head map } echo '</td>'; } } echo '</tr>'; } $first = false; ?> </tbody></table> <div style="margin-top: 5px"><button type="submit" class="link button" name="export" value="<?php echo Format:($g); ?>"> <i class="icon-download"></i> <?php echo __('Export'); ?></a></div> </div><?php}?></form>