From cfc5b5586771bea46106c54215884da6bc0ede6d Mon Sep 17 00:00:00 2001 From: Nik Okuntseff Date: Wed, 11 Apr 2018 23:44:54 +0000 Subject: [PATCH] Removed a no longer used function. --- WEB-INF/lib/ttTeamHelper.class.php | 24 ------------------------ WEB-INF/templates/footer.tpl | 2 +- 2 files changed, 1 insertion(+), 25 deletions(-) diff --git a/WEB-INF/lib/ttTeamHelper.class.php b/WEB-INF/lib/ttTeamHelper.class.php index dfcdaaf1..8d788cf3 100644 --- a/WEB-INF/lib/ttTeamHelper.class.php +++ b/WEB-INF/lib/ttTeamHelper.class.php @@ -797,30 +797,6 @@ class ttTeamHelper { return true; } - // The markTasksDeleted deletes task binds and marks the tasks as deleted for a group. - static function markTasksDeleted($group_id) { - $mdb2 = getConnection(); - $sql = "select id from tt_tasks where group_id = $group_id"; - $res = $mdb2->query($sql); - if (is_a($res, 'PEAR_Error')) return false; - - while ($val = $res->fetchRow()) { - - // Delete task binds. - $task_id = $val['id']; - $sql = "delete from tt_project_task_binds where task_id = $task_id"; - $affected = $mdb2->exec($sql); - if (is_a($affected, 'PEAR_Error')) return false; - - // Mark task as deleted. - $sql = "update tt_tasks set status = NULL where id = $task_id"; - $affected = $mdb2->exec($sql); - if (is_a($affected, 'PEAR_Error')) return false; - } - - return true; - } - // The deleteTasks deletes all tasks and task binds for an inactive group. static function deleteTasks($group_id) { $mdb2 = getConnection(); diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index 473d3632..56f76966 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.17.88.4257 | Copyright © Anuko | +  Anuko Time Tracker 1.17.88.4258 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} -- 2.20.1