* finish task#1211.

This commit is contained in:
chencongzhi520@gmail.com
2013-04-15 09:07:27 +00:00
parent 6bf0f5edbb
commit 09edd94b49
12 changed files with 101 additions and 90 deletions

View File

@@ -631,28 +631,6 @@ class userModel extends model
->fetchAll();
}
/**
* Get bugs assigned to a user.
*
* @param string $account
* @param object $pager
* @access public
* @return array
*/
public function getBugs($account, $pager = null)
{
return $this->dao->select('t1.*')
->from(TABLE_BUG)->alias('t1')
->leftJoin(TABLE_PRODUCT)->alias('t2')
->on('t1.product = t2.id')
->where('t2.deleted')->eq(0)
->andwhere('t1.deleted')->eq(0)
->andwhere('t1.assignedTo')->eq($account)
->orderBy('id desc')
->page($pager)
->fetchAll();
}
/**
* Plus the fail times.
*