X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/39988068b83854ecfd7f0a86ccfe4bfb8fc89644..fb57263a487993f368478238d3f65d3495349b22:/WEB-INF/lib/ttGroupExportHelper.class.php diff --git a/WEB-INF/lib/ttGroupExportHelper.class.php b/WEB-INF/lib/ttGroupExportHelper.class.php index d643ed9d..af49e19e 100644 --- a/WEB-INF/lib/ttGroupExportHelper.class.php +++ b/WEB-INF/lib/ttGroupExportHelper.class.php @@ -143,6 +143,20 @@ class ttGroupExportHelper { foreach ($clients as $key=>$client_item) $this->clientMap[$client_item['id']] = $key + 1; + // Write roles. + fwrite($this->file, $this->indentation."\n"); + foreach ($roles as $role) { + $role_part = $this->indentation.' '."roleMap[$role['id']]."\""; + $role_part .= " name=\"".htmlentities($role['name'])."\""; + $role_part .= " description=\"".htmlentities($role['description'])."\""; + $role_part .= " rank=\"".$role['rank']."\""; + $role_part .= " rights=\"".htmlentities($role['rights'])."\""; + $role_part .= " status=\"".$role['status']."\""; + $role_part .= ">\n"; + fwrite($this->file, $role_part); + } + fwrite($this->file, $this->indentation."\n"); + // Write users. fwrite($this->file, $this->indentation."\n"); foreach ($users as $user_item) {