Fixed a problem with deleting teams by supplying a required parameter.
[timetracker.git] / WEB-INF / lib / ttAdmin.class.php
index 6008dca..d4b72e2 100644 (file)
@@ -111,7 +111,7 @@ class ttAdmin {
     // Keep the logic simple by returning false on first error.
 
     // Obtain subgroups and call self recursively on them.
-    $subgroups = $this->getSubgroups();
+    $subgroups = $this->getSubgroups($group_id);
     foreach($subgroups as $subgroup) {
       if (!$this->markGroupDeleted($subgroup['id']))
         return false;