diff --git a/Makefile b/Makefile index 0a0bb955f5..2435ae32e8 100644 --- a/Makefile +++ b/Makefile @@ -131,6 +131,8 @@ zentaoxx: sed -i 's/commonModel::getLicensePropertyValue/extCommonModel::getLicensePropertyValue/g' zentaoxx/extension/xuan/im/control.php sed -i 's/commonModel::getLicensePropertyValue/extCommonModel::getLicensePropertyValue/g' zentaoxx/extension/xuan/im/model/conference.php sed -i 's/xxb_/zt_/g' zentaoxx/db/*.sql + sed -i "s#\$this->app->getModuleRoot() . 'im/apischeme.json'#\$this->app->getExtensionRoot() . 'xuan/im/apischeme.json'#g" zentaoxx/extension/xuan/im/model.php + sed -i "/getModuleExtPath(/ r tools/fixxuan" zentaoxx/framework/xuanxuan.class.php echo "ALTER TABLE \`zt_user\` ADD \`pinyin\` varchar(255) NOT NULL DEFAULT '' AFTER \`realname\`;" >> zentaoxx/db/xuanxuan.sql mkdir zentaoxx/tools; cp tools/cn2tw.php zentaoxx/tools; cd zentaoxx/tools; php cn2tw.php cp tools/en2de.php zentaoxx/tools; cd zentaoxx/tools; php en2de.php ../ @@ -242,12 +244,10 @@ ci: make package zip -rq -9 ZenTaoPMS.$(VERSION).zip zentaopms - #make deb; make rpm; make en rm -fr zentaopms zentaoxx zentaoxx.*.zip make en rm -fr zentaopms zentaoxx zentaoxx.*.zip php tools/mergezentaopms.php $(VERSION) - rm zentaobiz*.zip zentaomax*.zip + rm -f zentaobiz*.zip zentaomax*.zip $(BUILD_PATH)/ZenTaoPMS.$(VERSION).zip $(RELEASE_PATH)/ZenTaoALM.$(VERSION)*.zip $(RELEASE_PATH)/ZenTaoPMS.$(VERSION)*.zip $(RELEASE_PATH)/*.deb $(RELEASE_PATH)/*.rpm cp ZenTaoPMS.$(VERSION).zip $(BUILD_PATH) - rm -f $(RELEASE_PATH)/*.deb $(RELEASE_PATH)/*.rpm mv *.zip *.deb *.rpm $(RELEASE_PATH) diff --git a/config/filter.php b/config/filter.php index 7cf1e28852..d8732044d1 100644 --- a/config/filter.php +++ b/config/filter.php @@ -246,6 +246,7 @@ $filter->program->ajaxgetdropmenu->cookie['showClosed'] = 'code'; $filter->project->default->cookie['lastProject'] = 'int'; $filter->project->default->cookie['lastPRJ'] = 'int'; $filter->project->default->cookie['projectMode'] = 'code'; +$filter->project->default->cookie['kanbanview'] = 'code'; $filter->project->browse->cookie['involved'] = 'code'; $filter->project->browse->cookie['projectType'] = 'code'; $filter->project->story->cookie['storyModuleParam'] = 'int'; diff --git a/db/update11.7.sql b/db/update11.7.sql index f177f5c124..fbf0f9b24f 100644 --- a/db/update11.7.sql +++ b/db/update11.7.sql @@ -68,3 +68,4 @@ ALTER TABLE `zt_bug` ADD `entry` varchar(255) COLLATE 'utf8_general_ci' NOT NULL ALTER TABLE `zt_repobranch` ADD INDEX `revision` (`revision`); DELETE FROM `zt_grouppriv` WHERE `module` = 'api' AND `method` = 'sql'; +REPLACE INTO `zt_config` set `owner` = 'system', `module` = 'common', `section` = 'global', `key` = 'showAnnual', `value` = '1'; diff --git a/db/update16.4.sql b/db/update16.4.sql index d87b04cf5d..c874b5ea6b 100644 --- a/db/update16.4.sql +++ b/db/update16.4.sql @@ -29,3 +29,5 @@ INSERT INTO `zt_group` (`vision`, `name`, `role`, `desc`) VALUES ('lite', '迅捷版用户分组', 'liteUser', '迅捷版用户分组'); ALTER TABLE `zt_productplan` ADD `closedReason` varchar(20) NOT NULL AFTER `order`; + +update zt_config set `value` = concat(`value`, ',visions') where module = 'user' and `key` = 'requiredFields' and section in ('create', 'edit'); diff --git a/extension/lite/execution/ext/control/kanban.php b/extension/lite/execution/ext/control/kanban.php index 69571b03f5..a368309fdf 100644 --- a/extension/lite/execution/ext/control/kanban.php +++ b/extension/lite/execution/ext/control/kanban.php @@ -12,6 +12,9 @@ class myExecution extends execution $this->loadModel('project')->setMenu($execution->project); $this->lang->kanban->menu->execution['subMenu'] = new stdClass(); + $this->session->set('kanbanview', $currentMethod); + setcookie('kanbanview', $currentMethod, $this->config->cookieLife, $this->config->webRoot, '', false, true); + /* change subMenu to sub select menu */ $TRActions = $this->execution->getTRActions($currentMethod); diff --git a/extension/lite/execution/ext/model/lite.php b/extension/lite/execution/ext/model/lite.php index 533fd32350..2930759820 100644 --- a/extension/lite/execution/ext/model/lite.php +++ b/extension/lite/execution/ext/model/lite.php @@ -29,8 +29,18 @@ public function setMenu($executionID, $buildID = 0, $extra = '') } $modulePageNav .= ""; - if(in_array($this->app->rawMethod, array('task', 'calendar', 'gantt', 'tree', 'grouptask'))) $this->lang->TRActions = $this->getTRActions($this->app->rawMethod); - if(in_array($this->app->rawMethod, array('relation', 'maintainrelation'))) $this->lang->TRActions = $this->getTRActions('gantt'); + $lowerModule = strtolower($this->app->rawModule); + $lowerMethod = strtolower($this->app->rawMethod); + + if($lowerModule == 'execution' and strpos('|kanban|task|calendar|gantt|tree|grouptask|', "|{$lowerMethod}|") !== false) + { + $this->session->set('kanbanview', $lowerMethod); + setcookie('kanbanview', $lowerMethod, $this->config->cookieLife, $this->config->webRoot, '', false, true); + } + + if(strpos('|task|calendar|gantt|tree|grouptask|', "|{$lowerMethod}|") !== false) $this->lang->TRActions = $this->getTRActions($lowerMethod); + if(strpos('|relation|maintainrelation|', "|{$lowerMethod}|") !== false) $this->lang->TRActions = $this->getTRActions('gantt'); + if($lowerModule == 'task' || ($lowerModule == 'execution' and strpos('|kanban|task|calendar|gantt|tree|grouptask|', "|{$lowerMethod}|") === false)) $this->lang->TRActions = $this->getTRActions($this->session->kanbanview); $this->lang->modulePageNav = $modulePageNav; } @@ -94,12 +104,14 @@ public function getTRActions($currentMethod) } $TRActions = ''; - $TRActions .= "