From: Nik Okuntseff Date: Fri, 8 Mar 2019 22:42:28 +0000 (+0000) Subject: Releasing templates plugin for testing. X-Git-Tag: timetracker_1.19-1~194 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=fe8af9a04f7170a0623915f31610c6c4c3df4058;p=timetracker.git Releasing templates plugin for testing. --- diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index 26443eea..b7c02c71 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
- -{if isTrue('TEMPLATES_DEBUG')} -{/if} diff --git a/time.php b/time.php index dd219e8e..4f0d5918 100644 --- a/time.php +++ b/time.php @@ -304,6 +304,10 @@ if ($request->isPost()) { $err->add($i18n->get('error.field'), $i18n->get('label.duration')); } if (!ttValidString($cl_note, true)) $err->add($i18n->get('error.field'), $i18n->get('label.note')); + if ($user->isPluginEnabled('tp') && strpos($cl_note, '%req%') !== false) { + // A %req% element is found in note. They have to be replaced by user. + $err->add($i18n->get('error.field'), $i18n->get('label.note')); + } if (!ttTimeHelper::canAdd()) $err->add($i18n->get('error.expired')); // Finished validating user input.
 Anuko Time Tracker 1.18.55.4847 | Copyright © Anuko | +  Anuko Time Tracker 1.18.56.4848 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/WEB-INF/templates/plugins.tpl b/WEB-INF/templates/plugins.tpl index affbcc19..34c6fc22 100644 --- a/WEB-INF/templates/plugins.tpl +++ b/WEB-INF/templates/plugins.tpl @@ -152,12 +152,10 @@ function handlePluginCheckboxes() { {$forms.pluginsForm.timesheets.control}
{$forms.pluginsForm.templates.control} {$i18n.label.configure} {$i18n.label.what_is_it}