* fix the bug when import tasks.

This commit is contained in:
wangchunsheng
2010-11-24 13:58:33 +00:00
parent 1a8594a4c7
commit e9e28f418d
3 changed files with 5 additions and 3 deletions

View File

@@ -180,12 +180,13 @@ class projectModel extends model
/**
* Get project pairs.
*
* @param string $mode all|noclosed or empty
* @access public
* @return array
*/
public function getPairs()
public function getPairs($mode = '')
{
$mode = $this->cookie->projectMode ? $this->cookie->projectMode : 'noclosed';
if($mode == '') $mode = $this->cookie->projectMode ? $this->cookie->projectMode : 'noclosed';
$projects = $this->dao->select('*')->from(TABLE_PROJECT)
->where('iscat')->eq(0)
->andWhere('deleted')->eq(0)