* Fix bug #15476.
This commit is contained in:
@@ -476,6 +476,7 @@ class projectModel extends model
|
||||
*/
|
||||
public function getPairsByProgram($programID = 0, $status = 'all')
|
||||
{
|
||||
if(defined('TUTORIAL')) return $this->loadModel('tutorial')->getProjectPairs();
|
||||
return $this->dao->select('id, name')->from(TABLE_PROJECT)
|
||||
->where('type')->eq('project')
|
||||
->andWhere('deleted')->eq(0)
|
||||
|
||||
@@ -155,6 +155,17 @@ class tutorialModel extends model
|
||||
return $project;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get tutorial project pairs.
|
||||
*
|
||||
* @access public
|
||||
* @return array
|
||||
*/
|
||||
public function getProjectPairs()
|
||||
{
|
||||
return array(2 => 'Test Project');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get project stats for tutorial
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user