X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Flib%2FttGroupExportHelper.class.php;h=4ce8eed6522258c5536feaab5295b7aac7a8cabb;hb=f05a2db179417c20c7d841f0363bca4988c8a2ca;hp=41f773d7308e0d2d3b200cb2f3c29368bc43857d;hpb=5bb07193aba175a45ab558116aa8c0caeef02f15;p=timetracker.git
diff --git a/WEB-INF/lib/ttGroupExportHelper.class.php b/WEB-INF/lib/ttGroupExportHelper.class.php
index 41f773d7..4ce8eed6 100644
--- a/WEB-INF/lib/ttGroupExportHelper.class.php
+++ b/WEB-INF/lib/ttGroupExportHelper.class.php
@@ -335,6 +335,35 @@ class ttGroupExportHelper {
}
// Write time log entries and build logMap at the same time.
+ $records = $this->getRecordsFromTable('tt_log');
+ if (count($records) > 0) {
+ fwrite($this->file, $this->indentation." \n");
+ $key = 0;
+ foreach ($records as $record) {
+ $key++;
+ $this->logMap[$record['id']] = $key;
+ $log_part = $this->indentation.' '."userMap[$record['user_id']]."\"";
+ $log_part .= " date=\"".$record['date']."\"";
+ $log_part .= " start=\"".$record['start']."\"";
+ $log_part .= " duration=\"".$record['duration']."\"";
+ $log_part .= " client_id=\"".$this->clientMap[$record['client_id']]."\"";
+ $log_part .= " project_id=\"".$this->projectMap[$record['project_id']]."\"";
+ $log_part .= " task_id=\"".$this->taskMap[$record['task_id']]."\"";
+ $log_part .= " invoice_id=\"".$this->invoiceMap[$record['invoice_id']]."\"";
+ $log_part .= " comment=\"".htmlspecialchars($record['comment'])."\"";
+ $log_part .= " billable=\"".$record['billable']."\"";
+ $log_part .= " paid=\"".$record['paid']."\"";
+ $log_part .= " status=\"".$record['status']."\"";
+ $log_part .= ">\n";
+ fwrite($this->file, $log_part);
+ }
+ fwrite($this->file, $this->indentation." \n");
+ unset($records);
+ unset($log_part);
+ }
+
+ /*
fwrite($this->file, $this->indentation." \n");
$key = 0;
foreach ($this->userMap as $key => $value) {
@@ -364,6 +393,7 @@ class ttGroupExportHelper {
fwrite($this->file, $this->indentation." \n");
unset($records);
unset($log_part);
+ */
// Write custom fields.
if (count($custom_fields) > 0) {