From a99eed64c692add1b423ea89d0972f6698e4e6fa Mon Sep 17 00:00:00 2001 From: Nik Okuntseff Date: Sat, 9 Mar 2019 18:15:04 +0000 Subject: [PATCH] Added templates to group export. --- WEB-INF/lib/ttGroupExportHelper.class.php | 17 +++++++++++++++++ WEB-INF/templates/footer.tpl | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) 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.' '."