From: Nik Okuntseff Date: Tue, 5 Mar 2019 18:42:59 +0000 (+0000) Subject: Added project filter on reports depending on selected client. X-Git-Tag: timetracker_1.19-1~219 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=d71e36acc9393f7657dd3ab1fbb148c4bbf466c7;p=timetracker.git Added project filter on reports depending on selected client. --- diff --git a/WEB-INF/lib/ttClientHelper.class.php b/WEB-INF/lib/ttClientHelper.class.php index 02014f1f..64eedb0a 100644 --- a/WEB-INF/lib/ttClientHelper.class.php +++ b/WEB-INF/lib/ttClientHelper.class.php @@ -63,7 +63,7 @@ class ttClientHelper { $result = array(); - $sql = "select id, name from tt_clients where group_id = $group_id and org_id = $org_id and (status = 0 or status = 1) order by upper(name)"; + $sql = "select id, name, projects from tt_clients where group_id = $group_id and org_id = $org_id and (status = 0 or status = 1) order by upper(name)"; $res = $mdb2->query($sql); if (!is_a($res, 'PEAR_Error')) { while ($val = $res->fetchRow()) { diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index e4384ddb..a83f58e3 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.18.53.4826 | Copyright © Anuko | +  Anuko Time Tracker 1.18.53.4827 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/WEB-INF/templates/reports.tpl b/WEB-INF/templates/reports.tpl index 1358d29d..3b66c71f 100644 --- a/WEB-INF/templates/reports.tpl +++ b/WEB-INF/templates/reports.tpl @@ -1,4 +1,28 @@