+ add editor to product module.
+ add PO, QM, RM to product and project.
This commit is contained in:
@@ -258,6 +258,21 @@ class projectModel extends model
|
||||
return $project;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the default managers for a project from it's related products.
|
||||
*
|
||||
* @param int $projectID
|
||||
* @access public
|
||||
* @return object
|
||||
*/
|
||||
public function getDefaultManagers($projectID)
|
||||
{
|
||||
return $this->dao->select('PO,QM,RM')->from(TABLE_PRODUCT)->alias('t1')
|
||||
->leftJoin(TABLE_PROJECTPRODUCT)->alias('t2')->on('t1.id = t2.product')
|
||||
->where('t2.project')->eq($projectID)
|
||||
->fetch();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get products of a project.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user