From: Nik Okuntseff Date: Wed, 21 Feb 2018 15:28:00 +0000 (+0000) Subject: Fixed cleanup code to include tt_roles table. X-Git-Tag: timetracker_1.19-1~1105 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=ebcf3daac421df8e3925e5fff52b26d4bb789286;p=timetracker.git Fixed cleanup code to include tt_roles table. --- diff --git a/WEB-INF/lib/ttTeamHelper.class.php b/WEB-INF/lib/ttTeamHelper.class.php index aebf52a9..e88492e5 100644 --- a/WEB-INF/lib/ttTeamHelper.class.php +++ b/WEB-INF/lib/ttTeamHelper.class.php @@ -885,6 +885,11 @@ class ttTeamHelper { // Delete custom fields. if (!ttTeamHelper::deleteCustomFields($team_id)) return false; + // Delete roles. + $sql = "delete from tt_roles where team_id = $team_id"; + $affected = $mdb2->exec($sql); + if (is_a($affected, 'PEAR_Error')) return false; + // Delete team. $sql = "delete from tt_teams where id = $team_id"; $affected = $mdb2->exec($sql); diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index 11ff3730..ccc935f2 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.17.28.4006 | Copyright © Anuko | +  Anuko Time Tracker 1.17.28.4007 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/dbinstall.php b/dbinstall.php index 41864c45..491330f2 100755 --- a/dbinstall.php +++ b/dbinstall.php @@ -763,6 +763,7 @@ if ($_POST) { setChange("OPTIMIZE TABLE tt_tmp_refs"); setChange("OPTIMIZE TABLE tt_user_project_binds"); setChange("OPTIMIZE TABLE tt_users"); + setChange("OPTIMIZE TABLE tt_roles"); } print "done.
\n";