* Finish task #57871.
This commit is contained in:
@@ -211,12 +211,11 @@ class productplanModel extends model
|
||||
*/
|
||||
public function getTopPlanPairs($productID, $branch = '', $exclude = '')
|
||||
{
|
||||
$statusList = array('done','closed');
|
||||
$planPairs = $this->dao->select("id,title")->from(TABLE_PRODUCTPLAN)
|
||||
->where('product')->eq($productID)
|
||||
->beginIF($branch !== '')->andWhere('branch')->eq($branch)->fi()
|
||||
->andWhere('parent')->le(0)
|
||||
->andWhere('status')->notin($statusList)
|
||||
->andWhere('status')->notin('done,closed')
|
||||
->andWhere('deleted')->eq(0)
|
||||
->orderBy('id_desc')
|
||||
->fetchPairs();
|
||||
|
||||
Reference in New Issue
Block a user