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 7b92e16..44ffd6c 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 68193f5..d457837 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']) {