X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/7051fc8c0f68618bbaff5f8bb48d3478ce93836a..a1d3d5c5d92eed842325de1c62295cb01d070228:/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) {