Fixed charts to allow display of totals for unassigned projects and tasks.
authoranuko <support@anuko.com>
Tue, 17 Jan 2017 22:01:30 +0000 (22:01 +0000)
committeranuko <support@anuko.com>
Tue, 17 Jan 2017 22:01:30 +0000 (22:01 +0000)
WEB-INF/lib/ttChartHelper.class.php
WEB-INF/templates/footer.tpl

index 70bb534..7e58ca0 100644 (file)
@@ -70,12 +70,12 @@ class ttChartHelper {
     if (CHART_PROJECTS == $ch_type) {
       // Data for projects.
       $sql = "select p.name as name, sum(time_to_sec(l.duration)) as time from tt_log l
-        inner join tt_projects p on (p.id = l.project_id)
+        left join tt_projects p on (p.id = l.project_id)
         where l.status = 1 and l.duration > 0 and l.user_id = $user_id $q_period group by l.project_id";
     } elseif (CHART_TASKS == $ch_type) {
       // Data for tasks.
       $sql = "select t.name as name, sum(time_to_sec(l.duration)) as time from tt_log l
-        inner join tt_tasks t on (t.id = l.task_id)
+        left join tt_tasks t on (t.id = l.task_id)
         where l.status = 1 and l.duration > 0 and l.user_id = $user_id $q_period group by l.task_id";
     } elseif (CHART_CLIENTS == $ch_type) {
       // Data for clients.
index a3a8245..b2366c1 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.9.35.3551 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+          <td align="center">&nbsp;Anuko Time Tracker 1.9.35.3552 | 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>