diff --git a/Makefile b/Makefile index 2a01d279cd..e9852d8c3a 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ VERSION = $(shell head -n 1 VERSION) XUANPATH = $(shell head -n 1 XUANPATH) XUANVERSION = $(shell head -n 1 XUANVERSION) +XVERSION = $(strip $(subst v,, $(XUANVERSION))) all: pms clean: @@ -75,6 +76,8 @@ zentaoxx: mkdir zentaoxx/db/ cp zentaoxx/db_bak/upgradexuanxuan*.sql zentaoxx/db_bak/xuanxuan.sql zentaoxx/db/ rm -rf zentaoxx/db_bak/ + sed -i 's/xxbVersion/$(XVERSION)/g' zentaoxx/config/ext/xuanxuan.php + sed -i "/\$$config->xuanxuan->backend /c\\\$$config->xuanxuan->backend = 'zentao';" zentaoxx/config/ext/xuanxuan.php sed -i 's/site,//' zentaoxx/module/chat/model.php sed -i 's/admin, g/g/' zentaoxx/module/chat/model.php sed -i '/password = md5/d' zentaoxx/module/chat/control.php diff --git a/db/zentao.sql b/db/zentao.sql index 848a4e137d..046cb8230a 100644 --- a/db/zentao.sql +++ b/db/zentao.sql @@ -567,6 +567,7 @@ CREATE TABLE IF NOT EXISTS `zt_story` ( `status` enum('','changed','active','draft','closed') NOT NULL default '', `color` char(7) NOT NULL, `stage` enum('','wait','planned','projected','developing','developed','testing','tested','verified','released', 'closed') NOT NULL DEFAULT 'wait', + `stagedBy` char(30) NOT NULL, `mailto` text, `openedBy` varchar(30) NOT NULL default '', `openedDate` datetime NOT NULL, @@ -604,6 +605,7 @@ CREATE TABLE IF NOT EXISTS `zt_storystage` ( `story` mediumint(8) unsigned NOT NULL, `branch` mediumint(8) unsigned NOT NULL, `stage` varchar(50) NOT NULL, + `stagedBy` char(30) NOT NULL, UNIQUE KEY `story_branch` (`story`,`branch`), KEY `story` (`story`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; diff --git a/module/task/control.php b/module/task/control.php index c33865056a..34f58c79de 100644 --- a/module/task/control.php +++ b/module/task/control.php @@ -1335,7 +1335,7 @@ class task extends control if(!$this->session->taskWithChildren and $tasks) { $children = $this->dao->select('*')->from(TABLE_TASK)->where('deleted')->eq(0) - ->andWhere('parent')->ne(0) + ->andWhere('parent')->gt(0) ->andWhere('parent', true)->in(array_keys($tasks)) ->beginIF($this->post->exportType == 'selected')->orWhere('id')->in($this->cookie->checkedItem)->fi() ->markRight(1) diff --git a/module/todo/view/view.html.php b/module/todo/view/view.html.php index 65cf7e84e2..0d9b20a59d 100644 --- a/module/todo/view/view.html.php +++ b/module/todo/view/view.html.php @@ -35,6 +35,7 @@
desc;?>
+ createLink('action', 'comment', "objectType=todo&objectID=$todo->id");?>
@@ -45,8 +46,6 @@ common::printLink('todo', 'edit', "todoID=$todo->id", "", '', "title='{$lang->todo->edit}' class='btn showinonlybody'"); common::printLink('todo', 'delete', "todoID=$todo->id", "", 'hiddenwin', "title='{$lang->todo->delete}' class='btn showinonlybody'"); - if(common::hasPriv('action', 'comment', $todo)) echo html::a('#commentModal', '', '', "title='{$lang->comment}' data-toggle='modal' class='btn'"); - if($this->session->todoList) { $browseLink = $this->session->todoList; @@ -171,22 +170,6 @@
-