* finish task#1211.
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user