From 2046bb4fd970265264ca4b598c9a14739e78407f Mon Sep 17 00:00:00 2001 From: daitingting Date: Tue, 26 Jun 2018 15:08:53 +0800 Subject: [PATCH] * Locate to index page when there is no projects. --- module/project/control.php | 1 + 1 file changed, 1 insertion(+) diff --git a/module/project/control.php b/module/project/control.php index 19b7c5a7ea..e58a0a94cd 100644 --- a/module/project/control.php +++ b/module/project/control.php @@ -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')); } }