X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Flib%2FttTeamHelper.class.php;h=b861e669e7d30c096726be9725add9cf85ccaf7f;hb=d6a5ffec0f76b9ab5b1ee4f8e69ecdb2afd7c0ff;hp=2198c0a85badbc4710d9d9603f2df564a745c879;hpb=871d0e2a62747b03609afc04e0ed84cfb0b1d776;p=timetracker.git diff --git a/WEB-INF/lib/ttTeamHelper.class.php b/WEB-INF/lib/ttTeamHelper.class.php index 2198c0a8..b861e669 100644 --- a/WEB-INF/lib/ttTeamHelper.class.php +++ b/WEB-INF/lib/ttTeamHelper.class.php @@ -703,6 +703,16 @@ class ttTeamHelper { $affected = $mdb2->exec($sql); if (is_a($affected, 'PEAR_Error')) return false; + // Delete cron entries. + $sql = "delete from tt_cron where group_id = $group_id"; + $affected = $mdb2->exec($sql); + if (is_a($affected, 'PEAR_Error')) return false; + + // Delete predefined expenses. + $sql = "delete from tt_predefined_expenses where group_id = $group_id"; + $affected = $mdb2->exec($sql); + if (is_a($affected, 'PEAR_Error')) return false; + // Delete monthly quotas. $sql = "delete from tt_monthly_quotas where group_id = $group_id"; $affected = $mdb2->exec($sql);