X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Flib%2FttWeekViewHelper.class.php;h=5c03a373ac0bb66c974e3f4e4e7ab8af26d177b9;hb=16b12b986b03d54187662046e4a0a3c7a8c2393e;hp=ad21be00cf4f5b4c781d238b5e7d9a82704da622;hpb=0cc1dc50345b052d65274c4e686bf3b4cd621c4d;p=timetracker.git diff --git a/WEB-INF/lib/ttWeekViewHelper.class.php b/WEB-INF/lib/ttWeekViewHelper.class.php index ad21be00..5c03a373 100644 --- a/WEB-INF/lib/ttWeekViewHelper.class.php +++ b/WEB-INF/lib/ttWeekViewHelper.class.php @@ -72,7 +72,7 @@ class ttWeekViewHelper { from tt_log l $left_joins where l.date >= '$start_date' and l.date <= '$end_date' and l.user_id = $user_id and l.status = 1 - order by p.name, t.name, l.date, l.start, l.id"; + order by l.date, p.name, t.name, l.start, l.id"; $res = $mdb2->query($sql); if (!is_a($res, 'PEAR_Error')) { while ($val = $res->fetchRow()) { @@ -132,12 +132,9 @@ class ttWeekViewHelper { // 'day_6' => array('control_id' => '2_day_6', 'tt_log_id' => null, 'duration' => null) // ) // ); - static function getDataForWeekView($user_id, $start_date, $end_date, $dayHeaders) { + static function getDataForWeekView($records, $dayHeaders) { global $i18n; - // Start by obtaining all records in interval. - $records = ttWeekViewHelper::getRecordsForInterval($user_id, $start_date, $end_date); - $dataArray = array(); // Construct the first row for a brand new entry.