]> wagnertech.de Git - timetracker.git/blobdiff - WEB-INF/lib/ttClientHelper.class.php
Populating group_id and org_id in tt_client_project_binds.
[timetracker.git] / WEB-INF / lib / ttClientHelper.class.php
index 0c12a9538de4b242a85ddcbbab1055c09f0f3486..eeb77f77a993fe3246d793460671bad0e953c1bc 100644 (file)
@@ -195,7 +195,7 @@ class ttClientHelper {
 
     if (count($projects) > 0)
       foreach ($projects as $p_id) {
-        $sql = "insert into tt_client_project_binds (client_id, project_id) values($last_id, $p_id)";
+        $sql = "insert into tt_client_project_binds (client_id, project_id, group_id, org_id) values($last_id, $p_id, $group_id, $org_id)";
         $affected = $mdb2->exec($sql);
         if (is_a($affected, 'PEAR_Error'))
           return false;