Improved safety of timesheet assignment by adding an inner join.
[timetracker.git] / WEB-INF / lib / ttTimesheetHelper.class.php
index 8957151..a348cb5 100644 (file)
@@ -442,6 +442,7 @@ class ttTimesheetHelper {
     // Parts for client and project.
     if ($options['client_id']) $client_part = ' and client_id = '.(int)$options['client_id'];
     if ($options['project_id']) $project_part = ' and project_id = '.(int)$options['project_id'];
+    // TODO: test and fix the above for NULL client and project ids...
 
     // Determine start and end dates.
     $dateFormat = $user->getDateFormat();