From: Nik Okuntseff Date: Mon, 3 Dec 2018 15:54:34 +0000 (+0000) Subject: Reduced flicker on charts.php by specifying image size. X-Git-Tag: timetracker_1.19-1~491 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=d6949642980a9d59eae3378d5b350fd59b6905fe;p=timetracker.git Reduced flicker on charts.php by specifying image size. --- diff --git a/WEB-INF/lib/ttChartHelper.class.php b/WEB-INF/lib/ttChartHelper.class.php index 7a4d2584..528fcdb0 100644 --- a/WEB-INF/lib/ttChartHelper.class.php +++ b/WEB-INF/lib/ttChartHelper.class.php @@ -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"; } diff --git a/WEB-INF/templates/charts.tpl b/WEB-INF/templates/charts.tpl index b7df0e85..8e05e198 100644 --- a/WEB-INF/templates/charts.tpl +++ b/WEB-INF/templates/charts.tpl @@ -17,7 +17,7 @@ - +
{section name=i loop=$totals} diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index aacf7a64..00e7a3f0 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.18.29.4573 | Copyright © Anuko | +  Anuko Time Tracker 1.18.29.4574 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve}