* fix a bug for do not locate when no project and product in mobile.

This commit is contained in:
wangyidong
2013-07-04 06:45:39 +00:00
parent 178c3f2dee
commit fa9b8ad2a6
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -24,7 +24,7 @@ class project extends control
if($this->methodName != 'computeburn')
{
$this->projects = $this->project->getPairs();
if(!$this->projects and $this->methodName != 'create') $this->locate($this->createLink('project', 'create'));
if(!$this->projects and $this->methodName != 'create' and $this->app->getViewType() != 'mhtml') $this->locate($this->createLink('project', 'create'));
}
}
@@ -39,7 +39,6 @@ class project extends control
*/
public function index($locate = 'yes', $status = 'all', $projectID = 0)
{
if(empty($this->projects)) $this->locate($this->createLink('project', 'create'));
if($locate == 'yes') $this->locate($this->createLink('project', 'task'));
$this->commonAction($projectID);