* fix a bug for order by left.

This commit is contained in:
wyd621
2013-09-12 15:56:24 +08:00
parent 36ea5246db
commit 31d1346bf7

View File

@@ -712,7 +712,6 @@ class taskModel extends model
public function getProjectTasks($projectID, $type = 'all', $orderBy = 'status_asc, id_desc', $pager = null)
{
$orderBy = str_replace('status', 'statusCustom', $orderBy);
$orderBy = str_replace('left', '`left`', $orderBy);
$type = strtolower($type);
$tasks = $this->dao->select('t1.*, t2.id AS storyID, t2.title AS storyTitle, t2.version AS latestStoryVersion, t2.status AS storyStatus, t3.realname AS assignedToRealName')
->from(TABLE_TASK)->alias('t1')