diff --git a/Makefile b/Makefile index 4f57265a75..f511627ccc 100644 --- a/Makefile +++ b/Makefile @@ -79,6 +79,8 @@ zentaoxx: sed -i 's/sys_user/zt_user/' zentaoxx/db/*.sql sed -i 's/sys_file/zt_file/' zentaoxx/db/*.sql sed -i '/sys_entry/d' zentaoxx/db/*.sql + mkdir zentaoxx/tools; cp tools/cn2tw.php zentaoxx/tools; cd zentaoxx/tools; php cn2tw.php + rm -rf zentaopms/tools zip -rqm -9 zentaoxx.$(VERSION).zip zentaoxx/* rm -rf xuan.zip xuan zentaoxx package: @@ -92,7 +94,8 @@ package: if [ ! -d "zentaopms/config/ext" ]; then mkdir zentaopms/config/ext; fi for module in `ls zentaopms/module/`; do if [ ! -d "zentaopms/module/$$module/ext" ]; then mkdir zentaopms/module/$$module/ext; fi done find zentaopms/ -name ext |xargs chmod -R 777 - tools/cn2tw.php + mkdir zentaopms/tools; cp tools/cn2tw.php zentaopms/tools; cd zentaopms/tools; php cn2tw.php + rm -rf zentaopms/tools pms: make common make zentaoxx diff --git a/db/update11.2.sql b/db/update11.2.sql new file mode 100644 index 0000000000..83403f975a --- /dev/null +++ b/db/update11.2.sql @@ -0,0 +1,2 @@ +update `zt_build` set `deleted`='1' where `project`='0' and `id` in (select `build` from `zt_release` where `deleted`='1'); +ALTER TABLE `zt_productplan` ADD `parent` mediumint(9) NOT NULL DEFAULT '0' AFTER `branch`; diff --git a/module/block/control.php b/module/block/control.php index 0f07685b64..a67941a4c2 100644 --- a/module/block/control.php +++ b/module/block/control.php @@ -901,7 +901,7 @@ class block extends control $tasks = $this->dao->select("project, count(id) as totalTasks, count(status in ('wait','doing','pause') or null) as undoneTasks, count(finishedDate like '{$yesterday}%' or null) as yesterdayFinished, sum(if(status != 'cancel', estimate, 0)) as totalEstimate, sum(consumed) as totalConsumed, sum(if(status != 'cancel' and status != 'closed', `left`, 0)) as totalLeft")->from(TABLE_TASK) ->where('project')->in($projectIdList) ->andWhere('deleted')->eq(0) - ->andWhere('parent')->lt(1) + ->andWhere('parent')->ge(0) ->groupBy('project') ->fetchAll('project'); foreach($tasks as $projectID => $task) diff --git a/module/bug/view/create.html.php b/module/bug/view/create.html.php index 8dc5594d72..57c8996cb1 100644 --- a/module/bug/view/create.html.php +++ b/module/bug/view/create.html.php @@ -295,7 +295,7 @@ js::set('confirmDeleteTemplate', $lang->bug->confirmDeleteTemplate);