From: Nik Okuntseff Date: Sat, 9 Mar 2019 18:15:04 +0000 (+0000) Subject: Added templates to group export. X-Git-Tag: timetracker_1.19-1~188 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=a99eed64c692add1b423ea89d0972f6698e4e6fa;p=timetracker.git Added templates to group export. --- diff --git a/WEB-INF/lib/ttGroupExportHelper.class.php b/WEB-INF/lib/ttGroupExportHelper.class.php index 7810c79e..f2290fba 100644 --- a/WEB-INF/lib/ttGroupExportHelper.class.php +++ b/WEB-INF/lib/ttGroupExportHelper.class.php @@ -488,6 +488,23 @@ class ttGroupExportHelper { unset($predefined_expense_part); } + // Write templates. + $templates = $this->getRecordsFromTable('tt_templates'); + if (count($templates) > 0) { + fwrite($this->file, $this->indentation." \n"); + foreach ($templates as $template) { + $template_part = $this->indentation.' '."