X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/73d14da2b2bf18a91937cf08ee3da6e62f2d01e0..ebcf3daac421df8e3925e5fff52b26d4bb789286:/WEB-INF/lib/ttTeamHelper.class.php 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);