Reduced flicker on charts.php by specifying image size.
authorNik Okuntseff <support@anuko.com>
Mon, 3 Dec 2018 15:54:34 +0000 (15:54 +0000)
committerNik Okuntseff <support@anuko.com>
Mon, 3 Dec 2018 15:54:34 +0000 (15:54 +0000)
WEB-INF/lib/ttChartHelper.class.php
WEB-INF/templates/charts.tpl
WEB-INF/templates/footer.tpl

index 7a4d258..528fcdb 100644 (file)
@@ -77,7 +77,7 @@ class ttChartHelper {
         where l.status = 1 and l.duration > 0 and l.user_id = $user_id $q_period group by l.task_id";
     } elseif (CHART_CLIENTS == $chart_type) {
       // Data for clients.
-      $sql = "select coalesce(c.name, 'NULL') as name, sum(time_to_sec(l.duration)) as time from tt_log l
+      $sql = "select c.name as name, sum(time_to_sec(l.duration)) as time from tt_log l
         left join tt_clients c on (c.id = l.client_id)
         where l.status = 1 and l.duration > 0 and l.user_id = $user_id $q_period group by l.client_id";
     }
index b7df0e8..8e05e19 100644 (file)
@@ -17,7 +17,7 @@
 </table>
 <table border="0" width="720">
   <tr>
-    <td width="50%" align="center"><img src="{$img_file_name}" border="0"/></td>
+    <td width="50%" align="center"><img src="{$img_file_name}" height="300" width="300" border="0"/></td>
     <td>
       <table border="0" cellspacing="3">
       {section name=i loop=$totals}
index aacf7a6..00e7a3f 100644 (file)
@@ -12,7 +12,7 @@
       <br>
       <table cellspacing="0" cellpadding="4" width="100%" border="0">
         <tr>
-          <td align="center">&nbsp;Anuko Time Tracker 1.18.29.4573 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+          <td align="center">&nbsp;Anuko Time Tracker 1.18.29.4574 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
             <a href="https://www.anuko.com/lp/tt_4.htm" target="_blank">{$i18n.footer.credits}</a> |
             <a href="https://www.anuko.com/lp/tt_5.htm" target="_blank">{$i18n.footer.license}</a> |
             <a href="https://www.anuko.com/lp/tt_7.htm" target="_blank">{$i18n.footer.improve}</a>