]> wagnertech.de Git - timetracker.git/blobdiff - WEB-INF/lib/ttImportHelper.class.php
More refactoring as part of subgroup support.
[timetracker.git] / WEB-INF / lib / ttImportHelper.class.php
index 69af9e12cd9beac5c6b2218d3726632af59d21ff..8c6fd0c08fc3b18b8bb5d2d1c5eb9acd28dbdd94 100644 (file)
@@ -67,7 +67,7 @@ class ttImportHelper {
   var $logMap        = array(); // Time log ids.
 
   // Constructor.
-  function ttImportHelper(&$errors) {
+  function __construct(&$errors) {
     $this->errors = &$errors;
   }
 
@@ -152,7 +152,9 @@ class ttImportHelper {
           foreach ($this->roles as $key=>$role_item) {
             $role_id = ttRoleHelper::insert(array(
               'group_id' => $this->group_id,
+              'org_id' => $this->org_id,
               'name' => $role_item['NAME'],
+              'description' => $role_item['DESCRIPTION'],
               'rank' => $role_item['RANK'],
               'rights' => $role_item['RIGHTS'],
               'status' => $role_item['STATUS']));