diff --git a/db/update11.6.5.sql b/db/update11.6.5.sql index 3174184644..b07f84fe7d 100644 --- a/db/update11.6.5.sql +++ b/db/update11.6.5.sql @@ -3,6 +3,5 @@ CREATE TABLE `zt_dinguserid` ( `webhook` mediumint(8) unsigned NOT NULL, `account` varchar(30) NOT NULL, `userid` varchar(255) NOT NULL, - UNIQUE KEY `webhook_account_userid` (`webhook`,`account`,`userid`) + UNIQUE KEY `webhook_account` (`webhook`,`account`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; -DROP TABLE IF EXISTS `zt_translation`; diff --git a/framework/control.class.php b/framework/control.class.php index ee0a0c4184..60175dcd13 100644 --- a/framework/control.class.php +++ b/framework/control.class.php @@ -33,7 +33,7 @@ class control extends baseControl { parent::__construct($moduleName, $methodName, $appName); - $this->setConcept(); + if(!defined('IN_INSTALL') and !defined('IN_UPGRADE')) $this->setConcept(); if(!isset($this->config->bizVersion)) return false; /* Code for task #9224. Set requiredFields for workflow. */ @@ -57,8 +57,9 @@ class control extends baseControl */ public function setConcept() { - if(isset($this->app->user) and $this->app->user->admin != 'super') return true; + if(empty($this->app->user->admin)) return true; if($this->app->getModuleName() == 'user' and strpos("login,logout", $this->app->getMethodName()) !== false) return true; + if($this->app->getModuleName() == 'my' and $this->app->getMethodName() == 'changepassword') return true; if($this->app->getModuleName() == 'custom' and $this->app->getMethodName() == 'setConcept') return true; if(!isset($this->config->conceptSetted) and $this->app->getMethodName() != 'concept') diff --git a/framework/router.class.php b/framework/router.class.php index cb4898851b..01daa13d16 100755 --- a/framework/router.class.php +++ b/framework/router.class.php @@ -95,7 +95,7 @@ class router extends baseRouter /* Set productCommon and projectCommon for flow. */ if($moduleName == 'common') { - $productProject = false; + $productProject = $storyRequirement = $hourPoint = false; if($this->dbh and !empty($this->config->db->name)) { global $config; diff --git a/module/custom/model.php b/module/custom/model.php index b6a70ffa4b..51516277e6 100644 --- a/module/custom/model.php +++ b/module/custom/model.php @@ -520,6 +520,12 @@ class customModel extends model } } + /** + * Set story or requirement. + * + * @access public + * @return void + */ public function setStoryRequirement() { $this->loadModel('setting')->setItem('system.custom.storyRequirement', $this->post->storyRequirement); @@ -533,6 +539,12 @@ class customModel extends model } } + /** + * Set hour or story point. + * + * @access public + * @return void + */ public function setHourPoint() { $this->loadModel('setting')->setItem('system.custom.hourPoint', $this->post->hourPoint); diff --git a/module/custom/view/concept.html.php b/module/custom/view/concept.html.php index e839a6c646..d7a3ab2543 100644 --- a/module/custom/view/concept.html.php +++ b/module/custom/view/concept.html.php @@ -9,25 +9,13 @@ * @version $Id: deny.html.php 4129 2013-01-18 01:58:14Z wwccss $ */ ?> -config->conceptSetted)):?> - - - -config->conceptSetted)):?>