* Locate to index page when there is no projects.

This commit is contained in:
daitingting
2018-06-26 15:08:53 +08:00
parent 2a2d7abeba
commit 2046bb4fd9
+1
View File
@@ -25,6 +25,7 @@ class project extends control
{
$this->projects = $this->project->getPairs('nocode');
if(!$this->projects and $this->methodName != 'index' and $this->methodName != 'create' and $this->app->getViewType() != 'mhtml') $this->locate($this->createLink('project', 'create'));
if(!$this->projects and $this->methodName != 'index' and $this->methodName != 'create' and $this->app->getViewType() == 'mhtml') $this->locate($this->createLink('project', 'index'));
}
}