]> wagnertech.de Git - timetracker.git/blobdiff - WEB-INF/lib/ttImportHelper.class.php
Started to populate group_id and org_id in tt_user_project_binds.
[timetracker.git] / WEB-INF / lib / ttImportHelper.class.php
index 64a32e0e65cca677776a625a5e85d3bf43f9b4b2..307be1677ddfaaf0ba43fc3c3184c5fc2244aaed 100644 (file)
@@ -206,11 +206,19 @@ class ttImportHelper {
           'status' => $this->currentElement['STATUS']));
     }
     if ($name == 'USER_PROJECT_BIND' && $this->canImport) {
-      ttUserHelper::insertBind(
+/*
+        ttUserHelper::insertBind(
         $this->userMap[$this->currentElement['USER_ID']],
         $this->projectMap[$this->currentElement['PROJECT_ID']],
         $this->currentElement['RATE'],
-        $this->currentElement['STATUS']);
+        $this->currentElement['STATUS']);*/
+      ttUserHelper::insertBind2(array(
+        'user_id' => $this->userMap[$this->currentElement['USER_ID']],
+        'project_id' => $this->projectMap[$this->currentElement['PROJECT_ID']],
+        'group_id' => $this->group_id,
+        'org_id' => $this->org_id,
+        'rate' => $this->currentElement['RATE'],
+        'status' => $this->currentElement['STATUS']));
     }
 
     if ($name == 'CLIENT' && $this->canImport) {