]> wagnertech.de Git - timetracker.git/blobdiff - WEB-INF/lib/ttTimesheetHelper.class.php
Added inactive timesheets to timesheets.php display.
[timetracker.git] / WEB-INF / lib / ttTimesheetHelper.class.php
index 64c73741c22ab562d6fd6a82e7b3334d7c3e93c6..1d43f1527f70f52fb760200a429d2bd47fd79c0b 100644 (file)
@@ -154,7 +154,7 @@ class ttTimesheetHelper {
     if ($user->isClient()) $client_part = "and client_id = $user->client_id";
 
     $sql = "select * from tt_timesheets".
-      " where id = $timesheet_id and group_id = $group_id and org_id = $org_id $client_part and status = 1";
+      " where id = $timesheet_id and group_id = $group_id and org_id = $org_id $client_part and status is not null";
     $res = $mdb2->query($sql);
     if (!is_a($res, 'PEAR_Error')) {
       if ($val = $res->fetchRow())