Improved a comment to clarify a point.
authoranuko <support@anuko.com>
Sat, 6 Jan 2018 17:25:29 +0000 (17:25 +0000)
committeranuko <support@anuko.com>
Sat, 6 Jan 2018 17:25:29 +0000 (17:25 +0000)
week.php

index 7afcb40..19476c8 100644 (file)
--- a/week.php
+++ b/week.php
@@ -353,8 +353,10 @@ if ($request->isPost()) {
               $record['project_id'] = $cl_project;
               $record['task_id'] = $cl_task;
               $record['cf_1_value'] = $cl_cf_1;
-              $fields['row_id'] = ttWeekViewHelper::makeRowIdentifier($record).'_0'; // TODO: Handle a possible conflict with already existing row...
-                                                                                    // We may have to increment the suffix here.
+              $fields['row_id'] = ttWeekViewHelper::makeRowIdentifier($record).'_0';
+              // Note: no need to check for a possible conflict with an already existing row
+              // because we are doing an insert that does not affect already existing data.
+
               $fields['note'] = $cl_note;
             }
             $fields['day_header'] = $dayHeader;