]> wagnertech.de Git - timetracker.git/commitdiff
Fixed a problem with inserting values with 0 duration from week view.
authoranuko <support@anuko.com>
Fri, 29 Dec 2017 23:14:56 +0000 (23:14 +0000)
committeranuko <support@anuko.com>
Fri, 29 Dec 2017 23:14:56 +0000 (23:14 +0000)
WEB-INF/templates/footer.tpl
week.php

index 7b92e1634e0ef33e76f470c7056ac199ebf5e2ef..44ffd6c7f3a21e7b3747741c4fced16916d96c12 100644 (file)
@@ -12,7 +12,7 @@
       <br>
       <table cellspacing="0" cellpadding="4" width="100%" border="0">
         <tr>
-          <td align="center">&nbsp;Anuko Time Tracker 1.13.2.3709| Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+          <td align="center">&nbsp;Anuko Time Tracker 1.13.2.3710| Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
             <a href="https://www.anuko.com/lp/tt_4.htm" target="_blank">{$i18n.footer.credits}</a> |
             <a href="https://www.anuko.com/lp/tt_5.htm" target="_blank">{$i18n.footer.license}</a> |
             <a href="https://www.anuko.com/lp/tt_7.htm" target="_blank">{$i18n.footer.improve}</a>
index 68193f56d724c9d5bfe5dc2e5a6bf946ee5d3f5f..d457837b5d0b80df12e216a7be59ab626b06c10c 100644 (file)
--- a/week.php
+++ b/week.php
@@ -338,7 +338,10 @@ if ($request->isPost()) {
             continue;
           // Posted value is different.
           if ($existingDuration == null) {
-            // Insert a new record here.
+            // Skip inserting 0 duration values.
+            if (0 == ttTimeHelper::toMinutes($postedDuration))
+              continue;
+            // Insert a new record.
             $fields = array();
             $fields['row_id'] = $dataArray[$rowNumber]['row_id'];
             if (!$fields['row_id']) {