Commit a67eea8b authored by Jean-Paul Saman's avatar Jean-Paul Saman

view simplify

parent 23df88df
......@@ -126,10 +126,7 @@ function timesheets($type, $order)
} else {
$q->addOrder('timesheet_creator');
}
if ($sort == "Ascending")
$q->addOrder('timesheet_period ' . $order);
else
$q->addOrder('timesheet_period ' . $order);
$q->addOrder('timesheet_period ' . $order);
if ($type >= 0)
$q->addWhere('timesheet_status = '. $type );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment