From 09a0f5eb840d00b4dca766ed24c42f50546c0e39 Mon Sep 17 00:00:00 2001 From: Nik Okuntseff Date: Mon, 19 Mar 2018 15:19:10 +0000 Subject: [PATCH] Fixing sending fav reports. --- WEB-INF/lib/ttReportHelper.class.php | 10 ++++++++++ WEB-INF/templates/footer.tpl | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/WEB-INF/lib/ttReportHelper.class.php b/WEB-INF/lib/ttReportHelper.class.php index af8549de..1f797ace 100644 --- a/WEB-INF/lib/ttReportHelper.class.php +++ b/WEB-INF/lib/ttReportHelper.class.php @@ -1570,6 +1570,8 @@ class ttReportHelper { $body .= ''.$i18n->getKey('label.cost').''; if ($report['show_paid']) $body .= ''.$i18n->getKey('label.paid').''; + if ($report['show_ip']) + $body .= ''.$i18n->getKey('label.ip').''; if ($report['show_invoice']) $body .= ''.$i18n->getKey('label.invoice').''; $body .= ''; @@ -1612,6 +1614,7 @@ class ttReportHelper { $body .= ''; } if ($report['show_paid']) $body .= ''; + if ($report['show_ip']) $body .= ''; if ($report['show_invoice']) $body .= ''; $body .= ''; $body .= ' '; @@ -1649,6 +1652,11 @@ class ttReportHelper { $body .= $record['paid'] == 1 ? $i18n->getKey('label.yes') : $i18n->getKey('label.no'); $body .= ''; } + if ($report['show_ip']) { + $body .= ''; + $body .= $record['modified'] ? $record['modified_ip'].' '.$record['modified'] : $record['created_ip'].' '.$record['created']; + $body .= ''; + } if ($report['show_invoice']) $body .= ''.htmlspecialchars($record['invoice']).''; $body .= ''; @@ -1679,6 +1687,7 @@ class ttReportHelper { $body .= ''; } if ($report['show_paid']) $body .= ''; + if ($report['show_ip']) $body .= ''; if ($report['show_invoice']) $body .= ''; $body .= ''; } @@ -1702,6 +1711,7 @@ class ttReportHelper { $body .= ''; } if ($report['show_paid']) $body .= ''; + if ($report['show_ip']) $body .= ''; if ($report['show_invoice']) $body .= ''; $body .= ''; diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index b5f80d30..821223fe 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.17.61.4117 | Copyright © Anuko | +  Anuko Time Tracker 1.17.62.4118 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} -- 2.20.1