diff --git a/.gitignore b/.gitignore
index b90aa51640..3ef6b26261 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
+config/db.php
config/my.php
www/data/
www/install.php
diff --git a/Makefile b/Makefile
index 0d3d8eaa7b..b959bce756 100644
--- a/Makefile
+++ b/Makefile
@@ -46,6 +46,8 @@ pms:
chmod 777 zentaopms/module
chmod 777 zentaopms/www
chmod a+rx zentaopms/bin/*
+ mkdir zentaopms/config/ext
+ for module in `ls zentaopms/module/`; do mkdir zentaopms/module/$$module/ext; done
find zentaopms/ -name ext |xargs chmod -R 777
zip -r -9 ZenTaoPMS.$(VERSION).zip zentaopms
rm -fr zentaopms
diff --git a/README.md b/README.md
index 986ed32761..f855d1538e 100644
--- a/README.md
+++ b/README.md
@@ -2,9 +2,11 @@
=====================
-ZenTao is an open source project management software, developed by Qingdao Nature Easy Soft Network Technology Co., Ltd. Integrating product management, project management, quality management, document management, organization management and to-do management, ZenTao is a professional development project management tool, covering the core processes of development project management.
+ZenTao is an open source project management software, developed by Qingdao Nature Easy Soft Network Technology Co. Ltd. Combining product management, project management, QA management, document management, company management and todo management. It is a professional project management software, covering the core process of software development projects.
+
+
+ZenTao is practical and pragmatic. It has full features and beautiful interfaces, and is easy to use. ZenTao is well structured and can be flexibly extended. It also has powerful search features, various forms of statistical reports and complete API.
-ZenTao is practical and pragmatic. It has full features and a beautiful interface, and is easy to operate. Zentao is well structured and can be extended flexibly. It also has powerful search features, various reports and API.
ZenTao focuses on development project management!
@@ -12,26 +14,26 @@ ZenTao focuses on development project management!
============================
-Zen(禅) and Tao(道) are two Chinese characters that have rich meanings in both religion and culture. ZenTao Project Management Software takes the cutural meaning of Zen and Tao, and is expected to convey our understanding and thinking on management. Inspired by The Tao of Programming and The Zen of Programming, we named our software ZenTao.
+Zen(禅) and Tao(道) are the two Chinese characters that have rich meanings in both religion and culture. ZenTao Project Management Software takes the cultural meaning of Zen and Tao, and is expected to convey our understanding and thinking of management. Inspired by The Tao of Programming and The Zen of Programming, we named our software ZenTao.
3. Design philosophy of ZenTao Project Management Software
==========================================================
-The main management philosophy of ZenTao Project Management Software is based on Scrum, an internationally popular Agile management methodology. Scrum is very pragmatic and easy to operate, so it fits in the fast iterative software development projects. However, Scrum only defines the core management framework. Therefore, details and workflows have to be extended and developed. Based on the philosophy of Scrum and the observation of the current development situation in China, ZenTao integrates bug management, test management, release management and document management, which covers the entire life cycle of software development. In ZenTao, the concept of product, project and test is clearly defined. Product team, development team and QA team coordinate and check with each other while they function differently. The three teams interact with each other through working on stories, tasks and bugs, and eventually deliver the product with quality.
+The main design philosophy of ZenTao Project Management Software is based on Scrum, an internationally popular Agile methodology. Scrum is very pragmatic and easy to operate, so it fits in the fast iterative development of software projects. However, Scrum only defines the core management framework. There are still many details and processes that have to be extended and developed. Based on the philosophy of Scrum and with the observation of the current development situations in China, ZenTao integrates bug management, test case management, release management and document management, and it completely covers the entire lifecycle of software development. In ZenTao, the concepts of product, project and test are clearly defined. Product team, development team and QA team coordinate and check with each other while they function differently. The three teams interact with each other through stories, tasks and bugs, and eventually deliver the product with quality.
4. Why choose ZenTao Project Management Software?
===============================================
-* ZenTao is a professional development project management software and canot be replaced by one simple project management software.
+* ZenTao is a professional development project management software and cannot be replaced by any simple project management software.
* ZenTao has precise and pragmatic management philosphy, which will accelerate Agile development.
* ZenTao has full features as a project management software, so you don’t have to integrate several systems together, like mantisbt + trac + testlink.
* Open source codes and flexible extension mechanism. It is convenient to use and develop based on ZenTao.
-* Underlying framework and front-end UI framework developed independently; robust and stable with beautiful interface and friendly interaction.
+* Underlying framework and frontend UI framework are developed independently; robust and stable with beautiful interface and friendly interaction.
* Perfect community mechanism; you can get technical support and help in time.
-* Zero input, which means you have no risk for choosing ZenTao compared with other commercial software that cost you thousands of dollars.
-* Support various ways of deployment, either private deployment or cloud service.
+* Zero input, which means you have no risk for choosing ZenTao, compared with other commercial software that cost you thousands of dollars.
+* Support various deployments, either private or cloud.
5. Features of ZenTao Project Management Software
@@ -39,15 +41,15 @@ The main management philosophy of ZenTao Project Management Software is based on
======================================================
* Product management: including products, stories, plans, releases and roadmaps;
-* Project management: including projects, tasks, teams, versions and burn-down charts;
+* Project management: including projects, tasks, teams, builds and burn-down charts;
* Quality management: including bugs, test cases, test tasks and test results;
* Document management: including product document library, project document library and customized document library;
* Work management: including to-do management and personal management, such as my tasks, my bugs, my story and my projects;
* Organization management: including department, users, groups and privileges;
* Statistics: various reports;
-* Search: powerful search features to help you find the data you need.
-* Extension mechanism: extensible almost anywhere in ZenTao;
-* API mechanism, visible API: convenient for integration with other systems.
+* Search: powerful search functions to help you find the data you need.
+* Extension mechanism: extensible in almost any parts of ZenTao;
+* API mechanism: convenient for integration with other systems.
6. Website
diff --git a/VERSION b/VERSION
index d1c0682f9d..072e6075b0 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-9.6.3
+10.0.beta
diff --git a/config/config.php b/config/config.php
index b01c02e9c7..29b8779a8b 100644
--- a/config/config.php
+++ b/config/config.php
@@ -5,7 +5,7 @@
*
* The author disclaims copyright to this source code. In place of
* a legal notice, here is a blessing:
- *
+ *
* May you do good and not evil.
* May you find forgiveness for yourself and forgive others.
* May you share freely, never taking more than you give.
@@ -16,7 +16,7 @@ if(!class_exists('config')){class config{}}
if(!function_exists('getWebRoot')){function getWebRoot(){}}
/* 基本设置。Basic settings. */
-$config->version = '9.6.3'; // ZenTaoPHP的版本。 The version of ZenTaoPHP. Don't change it.
+$config->version = '10.0.beta'; // ZenTaoPHP的版本。 The version of ZenTaoPHP. Don't change it.
$config->charset = 'UTF-8'; // ZenTaoPHP的编码。 The encoding of ZenTaoPHP.
$config->cookieLife = time() + 2592000; // Cookie的生存时间。The cookie life time.
$config->timezone = 'Asia/Shanghai'; // 时区设置。 The time zone setting, for more see http://www.php.net/manual/en/timezones.php.
@@ -32,12 +32,12 @@ $config->sessionVar = 'zentaosid'; // 请求类型为GET:session变
$config->views = ',html,json,mhtml,'; // 支持的视图类型。 Supported view formats.
/* 支持的主题和语言。Supported thems and languages. */
-$config->themes['default'] = 'default';
+$config->themes['default'] = 'default';
$config->langs['zh-cn'] = '简体';
$config->langs['zh-tw'] = '繁體';
$config->langs['en'] = 'English';
-/* 设备类型视图文件前缀。The prefix for view file for different device. */
+/* 设备类型视图文件前缀。The prefix for view file for different device. */
$config->devicePrefix['mhtml'] = '';
/* 默认值设置。Default settings. */
@@ -80,7 +80,7 @@ $config->domainPostfix .= "|rocks|social|co.com|bio|reviews|link|sexy|us.com|con
$config->domainPostfix .= "|menu|info|events|webcam|dating|vacations|flights|cruises|global|ca|guru|";
$config->domainPostfix .= "|futbol|rentals|dance|lawyer|attorney|democrat|republican|actor|condos|immobilien|";
$config->domainPostfix .= "|villas|foundation|expert|works|tools|watch|zone|bargains|agency|best|solar|";
-$config->domainPostfix .= "|farm|pics|photo|marketing|holiday|gift|buzz|guitars|trade|construction|";
+$config->domainPostfix .= "|farm|pics|photo|marketing|holiday|gift|buzz|guitars|trade|construction|";
$config->domainPostfix .= "|international|house|coffee|florist|rich|ceo|camp|education|repair|win|site|";
/* 系统框架配置。Framework settings. */
@@ -103,7 +103,7 @@ $config->framework->detectDevice['zh-tw'] = true; // 在zh-tw语言情况下,
$config->framework->detectDevice['en'] = true; // 在en语言情况下,是否启用设备检测功能。 Whether enable device detect or not.
/* 文件上传设置。 Upload settings. */
-$config->file = new stdclass();
+$config->file = new stdclass();
$config->file->dangers = 'php,php3,php4,phtml,php5,jsp,py,rb,asp,aspx,ashx,asa,cer,cdx,aspl,shtm,shtml,html,htm';
$config->file->allowed = 'txt,doc,docx,dot,wps,wri,pdf,ppt,pptx,xls,xlsx,ett,xlt,xlsm,csv,jpg,jpeg,png,psd,gif,ico,bmp,swf,avi,rmvb,rm,mp3,mp4,3gp,flv,mov,movie,rar,zip,bz,bz2,tar,gz,mpp,rp,pdm,vsdx,vsd,sql';
@@ -111,6 +111,14 @@ $config->file->allowed = 'txt,doc,docx,dot,wps,wri,pdf,ppt,pptx,xls,xlsx,ett,xlt
$filterConfig = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'filter.php';
if(file_exists($filterConfig)) include $filterConfig;
+/* 引用数据库的配置。 Include the database config file. */
+$dbConfig = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'db.php';
+if(file_exists($dbConfig)) include $dbConfig;
+
+/* 引用自定义的配置。 Include the custom config file. */
+$myConfig = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'my.php';
+if(file_exists($myConfig)) include $myConfig;
+
/* 禅道配置文件。zentaopms settings. */
$zentaopmsConfig = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'zentaopms.php';
if(file_exists($zentaopmsConfig)) include $zentaopmsConfig;
@@ -118,7 +126,3 @@ if(file_exists($zentaopmsConfig)) include $zentaopmsConfig;
/* Include extension config files. */
$extConfigFiles = glob(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'ext/*.php');
if($extConfigFiles) foreach($extConfigFiles as $extConfigFile) include $extConfigFile;
-
-/* 引用自定义的配置。 Include the custom config file. */
-$myConfig = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'my.php';
-if(file_exists($myConfig)) include $myConfig;
diff --git a/config/filter.php b/config/filter.php
index 66e2c6ce16..6b684691fd 100644
--- a/config/filter.php
+++ b/config/filter.php
@@ -53,6 +53,7 @@ $filter->bug->default = new stdclass();
$filter->bug->create = new stdclass();
$filter->bug->export = new stdclass();
$filter->doc->browse = new stdclass();
+$filter->doc->showfiles = new stdclass();
$filter->doc->default = new stdclass();
$filter->doc->showfiles = new stdclass();
$filter->mail->ztcloud = new stdclass();
@@ -99,6 +100,7 @@ $filter->bug->export->cookie['checkedItem'] = 'reg::checked';
$filter->doc->browse->cookie['browseType'] = 'reg::browseType';
$filter->doc->default->cookie['from'] = 'code';
$filter->doc->default->cookie['product'] = 'int';
+$filter->doc->showfiles->cookie['docFilesViewType'] = 'code';
$filter->file->download->cookie[$config->sessionVar] = 'code';
@@ -203,4 +205,4 @@ $filter->user->edit->get['from'] = 'reg::word';
$filter->git->cat->get['repoUrl'] = 'reg::base64';
$filter->git->diff->get['repoUrl'] = 'reg::base64';
$filter->svn->cat->get['repoUrl'] = 'reg::base64';
-$filter->svn->diff->get['repoUrl'] = 'reg::base64';
\ No newline at end of file
+$filter->svn->diff->get['repoUrl'] = 'reg::base64';
diff --git a/config/zentaopms.php b/config/zentaopms.php
index a7149c59c1..949a5a8146 100644
--- a/config/zentaopms.php
+++ b/config/zentaopms.php
@@ -95,7 +95,6 @@ define('TABLE_FILE', '`' . $config->db->prefix . 'file`');
define('TABLE_HISTORY', '`' . $config->db->prefix . 'history`');
define('TABLE_EXTENSION', '`' . $config->db->prefix . 'extension`');
define('TABLE_CRON', '`' . $config->db->prefix . 'cron`');
-define('TABLE_MAILQUEUE', '`' . $config->db->prefix . 'mailqueue`');
define('TABLE_BLOCK', '`' . $config->db->prefix . 'block`');
define('TABLE_DOCCONTENT', '`' . $config->db->prefix . 'doccontent`');
define('TABLE_TESTSUITE', '`' . $config->db->prefix . 'testsuite`');
@@ -104,9 +103,9 @@ define('TABLE_TESTREPORT', '`' . $config->db->prefix . 'testreport`');
define('TABLE_ENTRY', '`' . $config->db->prefix . 'entry`');
define('TABLE_WEBHOOK', '`' . $config->db->prefix . 'webhook`');
-define('TABLE_WEBHOOKDATAS', '`' . $config->db->prefix . 'webhookdatas`');
define('TABLE_LOG', '`' . $config->db->prefix . 'log`');
define('TABLE_SCORE', '`' . $config->db->prefix . 'score`');
+define('TABLE_NOTIFY', '`' . $config->db->prefix . 'notify`');
if(!defined('TABLE_LANG')) define('TABLE_LANG', '`' . $config->db->prefix . 'lang`');
$config->objectTables['product'] = TABLE_PRODUCT;
diff --git a/db/demo.sql b/db/demo.sql
index c1979dd99c..cd67150a07 100644
--- a/db/demo.sql
+++ b/db/demo.sql
@@ -267,21 +267,21 @@ INSERT INTO `zt_task` (`id`, `project`, `story`, `storyVersion`, `fromBug`, `nam
INSERT INTO `zt_task` (`id`, `project`, `story`, `storyVersion`, `fromBug`, `name`, `type`, `pri`, `estimate`, `consumed`, `left`, `deadline`, `status`, `mailto`, `desc`, `openedBy`, `openedDate`, `assignedTo`, `assignedDate`, `finishedBy`, `finishedDate`, `canceledBy`, `canceledDate`, `closedBy`, `closedDate`, `closedReason`, `lastEditedBy`, `lastEditedDate`, `deleted`) VALUES(8, 1, 4, 1, 0, '售后服务的开发', 'devel', 1, 8, 6, 0, '0000-00-00', 'cancel', '', '售后服务的开发
', 'projectManager', '2012-06-05 10:34:45', 'projectManager', '2012-06-05 10:41:20', 'dev1', '0000-00-00 00:00:00', 'dev1', '2012-06-05 10:41:20', '', '0000-00-00 00:00:00', '', 'dev1', '2012-06-05 10:41:20', '0');
INSERT INTO `zt_task` (`id`, `project`, `story`, `storyVersion`, `fromBug`, `name`, `type`, `pri`, `estimate`, `consumed`, `left`, `deadline`, `status`, `mailto`, `desc`, `openedBy`, `openedDate`, `assignedTo`, `assignedDate`, `finishedBy`, `finishedDate`, `canceledBy`, `canceledDate`, `closedBy`, `closedDate`, `closedReason`, `lastEditedBy`, `lastEditedDate`, `deleted`) VALUES(9, 1, 4, 1, 0, '售后服务的开发', 'devel', 1, 8, 0, 8, '0000-00-00', 'cancel', '', '售后服务的开发
', 'projectManager', '2012-06-05 10:35:01', 'projectManager', '2012-06-05 10:41:20', '', '0000-00-00 00:00:00', 'dev1', '2012-06-05 10:41:20', '', '0000-00-00 00:00:00', '', 'dev1', '2012-06-05 10:41:20', '0');
-INSERT INTO `zt_team` (`project`, `account`, `role`, `join`, `days`, `hours`) VALUES(1, 'dev3', '研发', '2013-02-20', 184, 7);
-INSERT INTO `zt_team` (`project`, `account`, `role`, `join`, `days`, `hours`) VALUES(1, 'productManager', '产品经理', '2013-02-20', 184, 7);
-INSERT INTO `zt_team` (`project`, `account`, `role`, `join`, `days`, `hours`) VALUES(1, 'tester2', '测试', '2013-02-20', 184, 7);
-INSERT INTO `zt_team` (`project`, `account`, `role`, `join`, `days`, `hours`) VALUES(1, 'tester1', '测试', '2013-02-20', 184, 7);
-INSERT INTO `zt_team` (`project`, `account`, `role`, `join`, `days`, `hours`) VALUES(2, 'projectManager', '项目经理', '2013-02-20', 365, 7);
-INSERT INTO `zt_team` (`project`, `account`, `role`, `join`, `days`, `hours`) VALUES(2, 'tester2', '测试', '2013-02-20', 365, 7);
-INSERT INTO `zt_team` (`project`, `account`, `role`, `join`, `days`, `hours`) VALUES(2, 'tester1', '测试', '2013-02-20', 365, 7);
-INSERT INTO `zt_team` (`project`, `account`, `role`, `join`, `days`, `hours`) VALUES(2, 'dev3', '研发', '2013-02-20', 365, 7);
-INSERT INTO `zt_team` (`project`, `account`, `role`, `join`, `days`, `hours`) VALUES(2, 'dev2', '研发', '2013-02-20', 365, 7);
-INSERT INTO `zt_team` (`project`, `account`, `role`, `join`, `days`, `hours`) VALUES(2, 'dev1', '研发', '2013-02-20', 365, 7);
-INSERT INTO `zt_team` (`project`, `account`, `role`, `join`, `days`, `hours`) VALUES(1, 'dev1', '研发', '2013-02-20', 184, 7);
-INSERT INTO `zt_team` (`project`, `account`, `role`, `join`, `days`, `hours`) VALUES(1, 'dev2', '研发', '2013-02-20', 184, 7);
-INSERT INTO `zt_team` (`project`, `account`, `role`, `join`, `days`, `hours`) VALUES(1, 'projectManager', '项目经理', '2013-02-20', 184, 7);
-INSERT INTO `zt_team` (`project`, `account`, `role`, `join`, `days`, `hours`) VALUES(1, 'testManager', '测试主管', '2013-02-20', 184, 7);
-INSERT INTO `zt_team` (`project`, `account`, `role`, `join`, `days`, `hours`) VALUES(2, 'productManager', '产品经理', '2013-02-20', 365, 7);
+INSERT INTO `zt_team` (`root`, `type`, `account`, `role`, `join`, `days`, `hours`) VALUES(1, 'project', 'dev3', '研发', '2013-02-20', 184, 7);
+INSERT INTO `zt_team` (`root`, `type`, `account`, `role`, `join`, `days`, `hours`) VALUES(1, 'project', 'productManager', '产品经理', '2013-02-20', 184, 7);
+INSERT INTO `zt_team` (`root`, `type`, `account`, `role`, `join`, `days`, `hours`) VALUES(1, 'project', 'tester2', '测试', '2013-02-20', 184, 7);
+INSERT INTO `zt_team` (`root`, `type`, `account`, `role`, `join`, `days`, `hours`) VALUES(1, 'project', 'tester1', '测试', '2013-02-20', 184, 7);
+INSERT INTO `zt_team` (`root`, `type`, `account`, `role`, `join`, `days`, `hours`) VALUES(2, 'project', 'projectManager', '项目经理', '2013-02-20', 365, 7);
+INSERT INTO `zt_team` (`root`, `type`, `account`, `role`, `join`, `days`, `hours`) VALUES(2, 'project', 'tester2', '测试', '2013-02-20', 365, 7);
+INSERT INTO `zt_team` (`root`, `type`, `account`, `role`, `join`, `days`, `hours`) VALUES(2, 'project', 'tester1', '测试', '2013-02-20', 365, 7);
+INSERT INTO `zt_team` (`root`, `type`, `account`, `role`, `join`, `days`, `hours`) VALUES(2, 'project', 'dev3', '研发', '2013-02-20', 365, 7);
+INSERT INTO `zt_team` (`root`, `type`, `account`, `role`, `join`, `days`, `hours`) VALUES(2, 'project', 'dev2', '研发', '2013-02-20', 365, 7);
+INSERT INTO `zt_team` (`root`, `type`, `account`, `role`, `join`, `days`, `hours`) VALUES(2, 'project', 'dev1', '研发', '2013-02-20', 365, 7);
+INSERT INTO `zt_team` (`root`, `type`, `account`, `role`, `join`, `days`, `hours`) VALUES(1, 'project', 'dev1', '研发', '2013-02-20', 184, 7);
+INSERT INTO `zt_team` (`root`, `type`, `account`, `role`, `join`, `days`, `hours`) VALUES(1, 'project', 'dev2', '研发', '2013-02-20', 184, 7);
+INSERT INTO `zt_team` (`root`, `type`, `account`, `role`, `join`, `days`, `hours`) VALUES(1, 'project', 'projectManager', '项目经理', '2013-02-20', 184, 7);
+INSERT INTO `zt_team` (`root`, `type`, `account`, `role`, `join`, `days`, `hours`) VALUES(1, 'project', 'testManager', '测试主管', '2013-02-20', 184, 7);
+INSERT INTO `zt_team` (`root`, `type`, `account`, `role`, `join`, `days`, `hours`) VALUES(2, 'project', 'productManager', '产品经理', '2013-02-20', 365, 7);
INSERT INTO `zt_testresult` (`id`, `run`, `case`, `version`, `caseResult`, `stepResults`, `lastRunner`, `date`) VALUES(1, 4, 1, 1, 'pass', 'a:1:{i:1;a:2:{s:6:"result";s:4:"pass";s:4:"real";s:0:"";}}', 'testManager', '2012-06-05 11:11:00');
INSERT INTO `zt_testresult` (`id`, `run`, `case`, `version`, `caseResult`, `stepResults`, `lastRunner`, `date`) VALUES(2, 3, 2, 1, 'pass', 'a:1:{i:2;a:2:{s:6:"result";s:4:"pass";s:4:"real";s:0:"";}}', 'testManager', '2012-06-05 11:11:05');
@@ -295,16 +295,15 @@ INSERT INTO `zt_testrun` (`id`, `task`, `case`, `version`, `assignedTo`, `lastRu
INSERT INTO `zt_testtask` (`id`, `name`, `product`, `project`, `build`, `owner`, `begin`, `end`, `desc`, `status`, `deleted`) VALUES(1, '企业网站第一期测试任务', 1, 1, 'trunk', 'testManager', '2012-06-05', '2013-06-21', '', 'wait', '0');
-
INSERT INTO `zt_user` (`id`, `dept`, `account`, `password`, `role`, `realname`, `nickname`, `commiter`, `avatar`, `birthday`, `gender`, `email`, `skype`, `qq`, `yahoo`, `gtalk`, `wangwang`, `mobile`, `phone`, `address`, `zipcode`, `join`, `visits`, `ip`, `last`, `deleted`) VALUES(2, 5, 'productManager', 'e10adc3949ba59abbe56e057f20f883e', 'po', '产品经理', '', '', '', '0000-00-00', 'm', '', '', '', '', '', '', '', '', '', '', '0000-00-00', 3, '192.168.0.8', 1338866083, '0');
INSERT INTO `zt_user` (`id`, `dept`, `account`, `password`, `role`, `realname`, `nickname`, `commiter`, `avatar`, `birthday`, `gender`, `email`, `skype`, `qq`, `yahoo`, `gtalk`, `wangwang`, `mobile`, `phone`, `address`, `zipcode`, `join`, `visits`, `ip`, `last`, `deleted`) VALUES(3, 6, 'projectManager', 'e10adc3949ba59abbe56e057f20f883e', 'pm', '项目经理', '', '', '', '0000-00-00', 'm', '', '', '', '', '', '', '', '', '', '', '0000-00-00', 3, '192.168.0.8', 1338865876, '0');
-INSERT INTO `zt_user` (`id`, `dept`, `account`, `password`, `role`, `realname`, `nickname`, `commiter`, `avatar`, `birthday`, `gender`, `email`, `skype`, `qq`, `yahoo`, `gtalk`, `wangwang`, `mobile`, `phone`, `address`, `zipcode`, `join`, `visits`, `ip`, `last`, `deleted`) VALUES(4, 2, 'dev1', 'e10adc3949ba59abbe56e057f20f883e', 'dev', '开发甲', '', '', '', '0000-00-00', 'm', '', '', '', '', '', '', '', '', '', '', '0000-00-00', 1, '192.168.0.8', 1338863860, '0');
-INSERT INTO `zt_user` (`id`, `dept`, `account`, `password`, `role`, `realname`, `nickname`, `commiter`, `avatar`, `birthday`, `gender`, `email`, `skype`, `qq`, `yahoo`, `gtalk`, `wangwang`, `mobile`, `phone`, `address`, `zipcode`, `join`, `visits`, `ip`, `last`, `deleted`) VALUES(5, 2, 'dev2', 'e10adc3949ba59abbe56e057f20f883e', 'dev', '开发乙', '', '', '', '0000-00-00', 'm', '', '', '', '', '', '', '', '', '', '', '0000-00-00', 1, '192.168.0.8', 1338864116, '0');
-INSERT INTO `zt_user` (`id`, `dept`, `account`, `password`, `role`, `realname`, `nickname`, `commiter`, `avatar`, `birthday`, `gender`, `email`, `skype`, `qq`, `yahoo`, `gtalk`, `wangwang`, `mobile`, `phone`, `address`, `zipcode`, `join`, `visits`, `ip`, `last`, `deleted`) VALUES(6, 2, 'dev3', 'e10adc3949ba59abbe56e057f20f883e', 'dev', '开发丙', '', '', '', '0000-00-00', 'm', '', '', '', '', '', '', '', '', '', '', '0000-00-00', 1, '192.168.0.8', 1338864187, '0');
-INSERT INTO `zt_user` (`id`, `dept`, `account`, `password`, `role`, `realname`, `nickname`, `commiter`, `avatar`, `birthday`, `gender`, `email`, `skype`, `qq`, `yahoo`, `gtalk`, `wangwang`, `mobile`, `phone`, `address`, `zipcode`, `join`, `visits`, `ip`, `last`, `deleted`) VALUES(7, 3, 'tester1', 'e10adc3949ba59abbe56e057f20f883e', 'qa', '测试甲', '', '', '', '0000-00-00', 'm', '', '', '', '', '', '', '', '', '', '', '0000-00-00', 3, '192.168.0.8', 1338865739, '0');
-INSERT INTO `zt_user` (`id`, `dept`, `account`, `password`, `role`, `realname`, `nickname`, `commiter`, `avatar`, `birthday`, `gender`, `email`, `skype`, `qq`, `yahoo`, `gtalk`, `wangwang`, `mobile`, `phone`, `address`, `zipcode`, `join`, `visits`, `ip`, `last`, `deleted`) VALUES(8, 3, 'tester2', 'e10adc3949ba59abbe56e057f20f883e', 'qa', '测试乙', '', '', '', '0000-00-00', 'm', '', '', '', '', '', '', '', '', '', '', '0000-00-00', 2, '192.168.0.8', 1338865450, '0');
-INSERT INTO `zt_user` (`id`, `dept`, `account`, `password`, `role`, `realname`, `nickname`, `commiter`, `avatar`, `birthday`, `gender`, `email`, `skype`, `qq`, `yahoo`, `gtalk`, `wangwang`, `mobile`, `phone`, `address`, `zipcode`, `join`, `visits`, `ip`, `last`, `deleted`) VALUES(9, 3, 'tester3', 'e10adc3949ba59abbe56e057f20f883e', 'qa', '测试丙', '', '', '', '0000-00-00', 'm', '', '', '', '', '', '', '', '', '', '', '0000-00-00', 1, '192.168.0.8', 1338865125, '0');
-INSERT INTO `zt_user` (`id`, `dept`, `account`, `password`, `role`, `realname`, `nickname`, `commiter`, `avatar`, `birthday`, `gender`, `email`, `skype`, `qq`, `yahoo`, `gtalk`, `wangwang`, `mobile`, `phone`, `address`, `zipcode`, `join`, `visits`, `ip`, `last`, `deleted`) VALUES(10, 1, 'testManager', 'e10adc3949ba59abbe56e057f20f883e', 'qd', '测试经理', '', '', '', '0000-00-00', 'm', '', '', '', '', '', '', '', '', '', '', '0000-00-00', 6, '192.168.0.8', 1338865842, '0');
+INSERT INTO `zt_user` (`id`, `dept`, `account`, `password`, `role`, `realname`, `nickname`, `commiter`, `avatar`, `birthday`, `gender`, `email`, `skype`, `qq`, `yahoo`, `gtalk`, `wangwang`, `mobile`, `phone`, `address`, `zipcode`, `join`, `visits`, `ip`, `last`, `deleted`) VALUES(4, 2, 'dev1', 'e10adc3949ba59abbe56e057f20f883e', 'dev', '开发甲', '', '', '', '0000-00-00', 'm', '', '', '', '', '', '', '', '', '', '', '0000-00-00', 1, '192.168.0.8', 1338863860, '1');
+INSERT INTO `zt_user` (`id`, `dept`, `account`, `password`, `role`, `realname`, `nickname`, `commiter`, `avatar`, `birthday`, `gender`, `email`, `skype`, `qq`, `yahoo`, `gtalk`, `wangwang`, `mobile`, `phone`, `address`, `zipcode`, `join`, `visits`, `ip`, `last`, `deleted`) VALUES(5, 2, 'dev2', 'e10adc3949ba59abbe56e057f20f883e', 'dev', '开发乙', '', '', '', '0000-00-00', 'm', '', '', '', '', '', '', '', '', '', '', '0000-00-00', 1, '192.168.0.8', 1338864116, '1');
+INSERT INTO `zt_user` (`id`, `dept`, `account`, `password`, `role`, `realname`, `nickname`, `commiter`, `avatar`, `birthday`, `gender`, `email`, `skype`, `qq`, `yahoo`, `gtalk`, `wangwang`, `mobile`, `phone`, `address`, `zipcode`, `join`, `visits`, `ip`, `last`, `deleted`) VALUES(6, 2, 'dev3', 'e10adc3949ba59abbe56e057f20f883e', 'dev', '开发丙', '', '', '', '0000-00-00', 'm', '', '', '', '', '', '', '', '', '', '', '0000-00-00', 1, '192.168.0.8', 1338864187, '1');
+INSERT INTO `zt_user` (`id`, `dept`, `account`, `password`, `role`, `realname`, `nickname`, `commiter`, `avatar`, `birthday`, `gender`, `email`, `skype`, `qq`, `yahoo`, `gtalk`, `wangwang`, `mobile`, `phone`, `address`, `zipcode`, `join`, `visits`, `ip`, `last`, `deleted`) VALUES(7, 3, 'tester1', 'e10adc3949ba59abbe56e057f20f883e', 'qa', '测试甲', '', '', '', '0000-00-00', 'm', '', '', '', '', '', '', '', '', '', '', '0000-00-00', 3, '192.168.0.8', 1338865739, '1');
+INSERT INTO `zt_user` (`id`, `dept`, `account`, `password`, `role`, `realname`, `nickname`, `commiter`, `avatar`, `birthday`, `gender`, `email`, `skype`, `qq`, `yahoo`, `gtalk`, `wangwang`, `mobile`, `phone`, `address`, `zipcode`, `join`, `visits`, `ip`, `last`, `deleted`) VALUES(8, 3, 'tester2', 'e10adc3949ba59abbe56e057f20f883e', 'qa', '测试乙', '', '', '', '0000-00-00', 'm', '', '', '', '', '', '', '', '', '', '', '0000-00-00', 2, '192.168.0.8', 1338865450, '1');
+INSERT INTO `zt_user` (`id`, `dept`, `account`, `password`, `role`, `realname`, `nickname`, `commiter`, `avatar`, `birthday`, `gender`, `email`, `skype`, `qq`, `yahoo`, `gtalk`, `wangwang`, `mobile`, `phone`, `address`, `zipcode`, `join`, `visits`, `ip`, `last`, `deleted`) VALUES(9, 3, 'tester3', 'e10adc3949ba59abbe56e057f20f883e', 'qa', '测试丙', '', '', '', '0000-00-00', 'm', '', '', '', '', '', '', '', '', '', '', '0000-00-00', 1, '192.168.0.8', 1338865125, '1');
+INSERT INTO `zt_user` (`id`, `dept`, `account`, `password`, `role`, `realname`, `nickname`, `commiter`, `avatar`, `birthday`, `gender`, `email`, `skype`, `qq`, `yahoo`, `gtalk`, `wangwang`, `mobile`, `phone`, `address`, `zipcode`, `join`, `visits`, `ip`, `last`, `deleted`) VALUES(10, 1, 'testManager', 'e10adc3949ba59abbe56e057f20f883e', 'qd', '测试经理', '', '', '', '0000-00-00', 'm', '', '', '', '', '', '', '', '', '', '', '0000-00-00', 6, '192.168.0.8', 1338865842, '1');
INSERT INTO `zt_usergroup` (`account`, `group`) VALUES('productManager', 5);
INSERT INTO `zt_usergroup` (`account`, `group`) VALUES('projectManager', 4);
diff --git a/db/endemo.sql b/db/endemo.sql
index 236a16b9a6..536c07c535 100644
--- a/db/endemo.sql
+++ b/db/endemo.sql
@@ -39,15 +39,15 @@ INSERT INTO `zt_action` (`id`, `objectType`, `objectID`, `product`, `project`, `
(33, 'user', 1, ',0,', 0, 'admin', 'login', '2017-12-12 15:18:58', '', '', '0'),
(34, 'user', 10, ',0,', 0, 'admin', 'deleted', '2017-12-12 15:20:05', '', '1', '0'),
(35, 'user', 1, ',0,', 0, 'admin', 'logout', '2017-12-12 15:22:11', '', '', '0'),
-(36, 'user', 12, ',0,', 0, 'theQS', 'login', '2017-12-12 15:22:36', '', '', '0'),
-(37, 'user', 12, ',0,', 0, 'theQS', 'logout', '2017-12-12 15:22:48', '', '', '0'),
+(36, 'user', 12, ',0,', 0, 'pm1', 'login', '2017-12-12 15:22:36', '', '', '0'),
+(37, 'user', 12, ',0,', 0, 'pm1', 'logout', '2017-12-12 15:22:48', '', '', '0'),
(38, 'user', 1, ',0,', 0, 'admin', 'login', '2017-12-12 15:23:02', '', '', '0'),
(39, 'user', 1, ',0,', 0, 'admin', 'logout', '2017-12-12 15:23:27', '', '', '0'),
-(40, 'user', 11, ',0,', 0, 'qa1', 'login', '2017-12-12 15:23:34', '', '', '0'),
-(41, 'build', 1, ',1,', 1, 'qa1', 'opened', '2017-12-12 15:25:13', '', '', '0'),
-(42, 'bug', 1, ',1,', 1, 'qa1', 'opened', '2017-12-12 15:27:56', '', '', '0'),
-(43, 'bug', 2, ',1,', 1, 'qa1', 'opened', '2017-12-12 15:30:32', '', '', '0'),
-(44, 'user', 11, ',0,', 0, 'qa1', 'logout', '2017-12-12 15:32:26', '', '', '0'),
+(40, 'user', 11, ',0,', 0, 'pm1', 'login', '2017-12-12 15:23:34', '', '', '0'),
+(41, 'build', 1, ',1,', 1, 'pm1', 'opened', '2017-12-12 15:25:13', '', '', '0'),
+(42, 'bug', 1, ',1,', 1, 'pm1', 'opened', '2017-12-12 15:27:56', '', '', '0'),
+(43, 'bug', 2, ',1,', 1, 'pm1', 'opened', '2017-12-12 15:30:32', '', '', '0'),
+(44, 'user', 11, ',0,', 0, 'pm1', 'logout', '2017-12-12 15:32:26', '', '', '0'),
(45, 'user', 1, ',0,', 0, 'admin', 'login', '2017-12-12 15:32:41', '', '', '0'),
(46, 'project', 1, ',1,', 1, 'admin', 'started', '2017-12-12 15:32:54', '', '', '0'),
(47, 'product', 2, ',2,', 0, 'admin', 'opened', '2017-12-12 23:28:29', '', '', '0'),
@@ -80,54 +80,54 @@ INSERT INTO `zt_action` (`id`, `objectType`, `objectID`, `product`, `project`, `
(74, 'task', 8, ',2,', 2, 'pm1', 'started', '2017-12-12 23:45:36', '', '', '0'),
(75, 'task', 7, ',2,', 2, 'pm1', 'recordestimate', '2017-12-12 23:45:53', '', '8', '0'),
(76, 'user', 3, ',0,', 0, 'pm1', 'logout', '2017-12-12 23:46:28', '', '', '0'),
-(77, 'user', 5, ',0,', 0, 'pg1', 'login', '2017-12-12 23:46:35', '', '', '0'),
-(78, 'task', 9, ',2,', 2, 'pg1', 'started', '2017-12-12 23:46:58', '', '', '0'),
-(79, 'task', 5, ',2,', 2, 'pg1', 'started', '2017-12-12 23:47:03', '', '', '0'),
-(80, 'task', 5, ',2,', 2, 'pg1', 'finished', '2017-12-12 23:47:37', 'Finished general setup at backend', '', '0'),
-(81, 'user', 5, ',0,', 0, 'pg1', 'logout', '2017-12-12 23:48:31', '', '', '0'),
-(82, 'user', 7, ',0,', 0, 'pg3', 'login', '2017-12-12 23:48:39', '', '', '0'),
-(83, 'build', 2, ',2,', 2, 'pg3', 'opened', '2017-12-12 23:49:31', '', '', '0'),
-(84, 'task', 9, ',2,', 2, 'pg3', 'recordestimate', '2017-12-12 23:51:14', 'Finished page design.', '8', '0'),
-(85, 'user', 7, ',0,', 0, 'pg3', 'logout', '2017-12-12 23:52:27', '', '', '0'),
+(77, 'user', 5, ',0,', 0, 'pm1', 'login', '2017-12-12 23:46:35', '', '', '0'),
+(78, 'task', 9, ',2,', 2, 'pm1', 'started', '2017-12-12 23:46:58', '', '', '0'),
+(79, 'task', 5, ',2,', 2, 'pm1', 'started', '2017-12-12 23:47:03', '', '', '0'),
+(80, 'task', 5, ',2,', 2, 'pm1', 'finished', '2017-12-12 23:47:37', 'Finished general setup at backend', '', '0'),
+(81, 'user', 5, ',0,', 0, 'pm1', 'logout', '2017-12-12 23:48:31', '', '', '0'),
+(82, 'user', 7, ',0,', 0, 'pm1', 'login', '2017-12-12 23:48:39', '', '', '0'),
+(83, 'build', 2, ',2,', 2, 'pm1', 'opened', '2017-12-12 23:49:31', '', '', '0'),
+(84, 'task', 9, ',2,', 2, 'pm1', 'recordestimate', '2017-12-12 23:51:14', 'Finished page design.', '8', '0'),
+(85, 'user', 7, ',0,', 0, 'pm1', 'logout', '2017-12-12 23:52:27', '', '', '0'),
(86, 'user', 2, ',0,', 0, 'thePO', 'login', '2017-12-12 23:52:30', '', '', '0'),
(87, 'story', 10, ',2,', 2, 'thePO', 'edited', '2017-12-12 23:52:40', '', '', '0'),
(88, 'story', 11, ',2,', 2, 'thePO', 'edited', '2017-12-12 23:53:04', '', '', '0'),
(89, 'project', 2, ',2,', 2, 'thePO', 'started', '2017-12-12 23:54:13', '', '', '0'),
(90, 'user', 2, ',0,', 0, 'thePO', 'logout', '2017-12-12 23:55:42', '', '', '0'),
-(91, 'user', 7, ',0,', 0, 'pg3', 'login', '2017-12-12 23:55:49', '', '', '0'),
-(92, 'testtask', 1, ',2,', 2, 'pg3', 'opened', '2017-12-12 23:56:59', '', '', '0'),
-(93, 'user', 7, ',0,', 0, 'pg3', 'logout', '2017-12-12 23:57:22', '', '', '0'),
-(94, 'user', 11, ',0,', 0, 'qa1', 'login', '2017-12-12 23:57:33', '', '', '0'),
-(95, 'case', 1, ',2,', 0, 'qa1', 'opened', '2017-12-13 00:00:29', '', '', '0'),
-(96, 'case', 2, ',2,', 0, 'qa1', 'opened', '2017-12-13 00:04:09', '', '', '0'),
-(97, 'testsuite', 1, ',0,', 0, 'qa1', 'opened', '2017-12-13 00:05:13', '', '', '0'),
-(98, 'bug', 3, ',2,', 2, 'qa1', 'opened', '2017-12-13 00:09:48', '', '', '0'),
-(99, 'case', 3, ',2,', 0, 'qa1', 'opened', '2017-12-13 00:13:25', '', '', '0'),
-(100, 'case', 2, ',2,', 0, 'qa1', 'edited', '2017-12-13 00:18:17', '', '', '0'),
-(101, 'bug', 4, ',2,', 2, 'qa1', 'opened', '2017-12-13 00:30:07', '', '', '0'),
-(102, 'bug', 4, ',2,', 2, 'qa1', 'edited', '2017-12-13 00:30:41', '', '', '0'),
-(103, 'bug', 3, ',2,', 2, 'qa1', 'edited', '2017-12-13 00:31:10', '', '', '0'),
-(104, 'bug', 5, ',2,', 2, 'qa1', 'opened', '2017-12-13 00:32:08', '', '', '0'),
-(105, 'user', 11, ',0,', 0, 'qa1', 'logout', '2017-12-13 00:34:34', '', '', '0');
+(91, 'user', 7, ',0,', 0, 'pm1', 'login', '2017-12-12 23:55:49', '', '', '0'),
+(92, 'testtask', 1, ',2,', 2, 'pm1', 'opened', '2017-12-12 23:56:59', '', '', '0'),
+(93, 'user', 7, ',0,', 0, 'pm1', 'logout', '2017-12-12 23:57:22', '', '', '0'),
+(94, 'user', 11, ',0,', 0, 'pm1', 'login', '2017-12-12 23:57:33', '', '', '0'),
+(95, 'case', 1, ',2,', 0, 'pm1', 'opened', '2017-12-13 00:00:29', '', '', '0'),
+(96, 'case', 2, ',2,', 0, 'pm1', 'opened', '2017-12-13 00:04:09', '', '', '0'),
+(97, 'testsuite', 1, ',0,', 0, 'pm1', 'opened', '2017-12-13 00:05:13', '', '', '0'),
+(98, 'bug', 3, ',2,', 2, 'pm1', 'opened', '2017-12-13 00:09:48', '', '', '0'),
+(99, 'case', 3, ',2,', 0, 'pm1', 'opened', '2017-12-13 00:13:25', '', '', '0'),
+(100, 'case', 2, ',2,', 0, 'pm1', 'edited', '2017-12-13 00:18:17', '', '', '0'),
+(101, 'bug', 4, ',2,', 2, 'pm1', 'opened', '2017-12-13 00:30:07', '', '', '0'),
+(102, 'bug', 4, ',2,', 2, 'pm1', 'edited', '2017-12-13 00:30:41', '', '', '0'),
+(103, 'bug', 3, ',2,', 2, 'pm1', 'edited', '2017-12-13 00:31:10', '', '', '0'),
+(104, 'bug', 5, ',2,', 2, 'pm1', 'opened', '2017-12-13 00:32:08', '', '', '0'),
+(105, 'user', 11, ',0,', 0, 'pm1', 'logout', '2017-12-13 00:34:34', '', '', '0');
INSERT INTO `zt_bug` (`id`, `product`, `branch`, `module`, `project`, `plan`, `story`, `storyVersion`, `task`, `toTask`, `toStory`, `title`, `keywords`, `severity`, `pri`, `type`, `os`, `browser`, `hardware`, `found`, `steps`, `status`, `color`, `confirmed`, `activatedCount`, `activatedDate`, `mailto`, `openedBy`, `openedDate`, `openedBuild`, `assignedTo`, `assignedDate`, `deadline`, `resolvedBy`, `resolution`, `resolvedBuild`, `resolvedDate`, `closedBy`, `closedDate`, `duplicateBug`, `linkBug`, `case`, `caseVersion`, `result`, `testtask`, `lastEditedBy`, `lastEditedDate`, `deleted`) VALUES
-(1, 1, 0, 1, 1, 0, 1, 1, 1, 0, 0, 'Switch desktops three time, then the order of desktops is different from that before.', '', 3, 0, 'codeerror', 'all', '', '', '', '
[Steps]Switch desktops three times.
\r\n[Results]The order of desktops is different from that was before.
\r\n[Expectations]The order of desktops is the same as that was before.
', 'active', '', 0, 0, '0000-00-00 00:00:00', ',pm1', 'qa1', '2017-12-12 15:27:55', '1', 'pm1', '2017-12-12 15:27:55', '2017-12-16', '', '', '', '0000-00-00 00:00:00', '', '0000-00-00 00:00:00', 0, '', 0, 0, 0, 0, '', '0000-00-00 00:00:00', '0'),
-(2, 1, 0, 2, 1, 0, 0, 1, 0, 0, 0, 'Full text retrieval in Word files. If Chinese characters exist in the file, it cannot be retrieved.', '', 3, 0, 'codeerror', '', '', '', '', '[Steps]Enter “禅道(ZenTao)” in a Word and serach “禅道”.
\r\n[Results] “禅道” is not found.
\r\n[Expectations] “禅道” is found.
', 'active', '', 0, 0, '0000-00-00 00:00:00', '', 'qa1', '2017-12-12 15:30:32', '1', 'pm1', '2017-12-12 15:30:32', '0000-00-00', '', '', '', '0000-00-00 00:00:00', '', '0000-00-00 00:00:00', 0, '', 0, 0, 0, 0, '', '0000-00-00 00:00:00', '0'),
-(3, 2, 0, 8, 2, 0, 10, 1, 0, 0, 0, '400 page is incomplete.', '', 3, 0, 'codeerror', '', '', '', '', '[Steps]
\r\n1. Click “400 page”
[Results]
\r\n1. Not all 400 page is displayed.
[Expectations]
\r\n1. List all 400 error pages.
', 'active', '', 0, 0, '0000-00-00 00:00:00', '', 'qa1', '2017-12-13 00:09:48', '2', '', '0000-00-00 00:00:00', '0000-00-00', '', '', '', '0000-00-00 00:00:00', '', '0000-00-00 00:00:00', 0, '', 2, 1, 1, 1, 'qa1', '2017-12-13 00:31:10', '0'),
-(4, 2, 0, 8, 2, 0, 10, 1, 0, 0, 0, 'Generate sitemap.', '', 3, 0, 'codeerror', '', '', '', '', '[Steps]
\r\n1. Click “Generate sitemap”.
[Results]
\r\n1. ‘Contact Us’ page is missing in sitemap.
[Expectations]
\r\n1. Generate sitemap.
', 'active', '', 0, 0, '0000-00-00 00:00:00', '', 'qa1', '2017-12-13 00:30:07', '2', '', '0000-00-00 00:00:00', '0000-00-00', '', '', '', '0000-00-00 00:00:00', '', '0000-00-00 00:00:00', 0, '', 2, 2, 0, 0, 'qa1', '2017-12-13 00:30:41', '0'),
-(5, 2, 0, 8, 2, 0, 10, 1, 0, 0, 0, 'Database error in adding blogroll.', '', 3, 0, 'codeerror', '', '', '', '', '[Steps]
\r\n1. Add ”www.zentao.pm\"
[Results]
\r\n1. It cannot be added, and database error prompts.
[Expectations]
1. In database form ‘friend link’, add ”www.zentao.pm\"
', 'active', '', 0, 0, '0000-00-00 00:00:00', '', 'qa1', '2017-12-13 00:32:08', '2', '', '0000-00-00 00:00:00', '0000-00-00', '', '', '', '0000-00-00 00:00:00', '', '0000-00-00 00:00:00', 0, '', 2, 2, 0, 0, '', '0000-00-00 00:00:00', '0');
+(1, 1, 0, 1, 1, 0, 1, 1, 1, 0, 0, 'Switch desktops three time, then the order of desktops is different from that before.', '', 3, 0, 'codeerror', 'all', '', '', '', '[Steps]Switch desktops three times.
\r\n[Results]The order of desktops is different from that was before.
\r\n[Expectations]The order of desktops is the same as that was before.
', 'active', '', 0, 0, '0000-00-00 00:00:00', ',pm1', 'pm1', '2017-12-12 15:27:55', '1', 'pm1', '2017-12-12 15:27:55', '2017-12-16', '', '', '', '0000-00-00 00:00:00', '', '0000-00-00 00:00:00', 0, '', 0, 0, 0, 0, '', '0000-00-00 00:00:00', '0'),
+(2, 1, 0, 2, 1, 0, 0, 1, 0, 0, 0, 'Full text retrieval in Word files. If Chinese characters exist in the file, it cannot be retrieved.', '', 3, 0, 'codeerror', '', '', '', '', '[Steps]Enter “禅道(ZenTao)” in a Word and serach “禅道”.
\r\n[Results] “禅道” is not found.
\r\n[Expectations] “禅道” is found.
', 'active', '', 0, 0, '0000-00-00 00:00:00', '', 'pm1', '2017-12-12 15:30:32', '1', 'pm1', '2017-12-12 15:30:32', '0000-00-00', '', '', '', '0000-00-00 00:00:00', '', '0000-00-00 00:00:00', 0, '', 0, 0, 0, 0, '', '0000-00-00 00:00:00', '0'),
+(3, 2, 0, 8, 2, 0, 10, 1, 0, 0, 0, '400 page is incomplete.', '', 3, 0, 'codeerror', '', '', '', '', '[Steps]
\r\n1. Click “400 page”
[Results]
\r\n1. Not all 400 page is displayed.
[Expectations]
\r\n1. List all 400 error pages.
', 'active', '', 0, 0, '0000-00-00 00:00:00', '', 'pm1', '2017-12-13 00:09:48', '2', '', '0000-00-00 00:00:00', '0000-00-00', '', '', '', '0000-00-00 00:00:00', '', '0000-00-00 00:00:00', 0, '', 2, 1, 1, 1, 'pm1', '2017-12-13 00:31:10', '0'),
+(4, 2, 0, 8, 2, 0, 10, 1, 0, 0, 0, 'Generate sitemap.', '', 3, 0, 'codeerror', '', '', '', '', '[Steps]
\r\n1. Click “Generate sitemap”.
[Results]
\r\n1. ‘Contact Us’ page is missing in sitemap.
[Expectations]
\r\n1. Generate sitemap.
', 'active', '', 0, 0, '0000-00-00 00:00:00', '', 'pm1', '2017-12-13 00:30:07', '2', '', '0000-00-00 00:00:00', '0000-00-00', '', '', '', '0000-00-00 00:00:00', '', '0000-00-00 00:00:00', 0, '', 2, 2, 0, 0, 'pm1', '2017-12-13 00:30:41', '0'),
+(5, 2, 0, 8, 2, 0, 10, 1, 0, 0, 0, 'Database error in adding blogroll.', '', 3, 0, 'codeerror', '', '', '', '', '[Steps]
\r\n1. Add ”www.zentao.pm\"
[Results]
\r\n1. It cannot be added, and database error prompts.
[Expectations]
1. In database form ‘friend link’, add ”www.zentao.pm\"
', 'active', '', 0, 0, '0000-00-00 00:00:00', '', 'pm1', '2017-12-13 00:32:08', '2', '', '0000-00-00 00:00:00', '0000-00-00', '', '', '', '0000-00-00 00:00:00', '', '0000-00-00 00:00:00', 0, '', 2, 2, 0, 0, '', '0000-00-00 00:00:00', '0');
INSERT INTO `zt_build` (`id`, `product`, `branch`, `project`, `name`, `scmPath`, `filePath`, `date`, `stories`, `bugs`, `builder`, `desc`, `deleted`) VALUES
-(1, 1, 0, 1, 'win10 V1.0build1', '', '', '2017-12-12', '', '', 'qa1', '', '0'),
-(2, 2, 0, 2, 'blog v0.1', '', '', '2017-12-12', '', '', 'pg3', 'build for inner test
', '0');
+(1, 1, 0, 1, 'win10 V1.0build1', '', '', '2017-12-12', '', '', 'pm1', '', '0'),
+(2, 2, 0, 2, 'blog v0.1', '', '', '2017-12-12', '', '', 'pm1', 'build for inner test
', '0');
INSERT INTO `zt_burn` (`project`, `date`, `estimate`, `left`, `consumed`) VALUES
(1, '2017-12-12', 280, 184, 68);
INSERT INTO `zt_case` (`id`, `product`, `branch`, `lib`, `module`, `path`, `story`, `storyVersion`, `title`, `precondition`, `keywords`, `pri`, `type`, `stage`, `howRun`, `scriptedBy`, `scriptedDate`, `scriptStatus`, `scriptLocation`, `status`, `color`, `frequency`, `order`, `openedBy`, `openedDate`, `reviewedBy`, `reviewedDate`, `lastEditedBy`, `lastEditedDate`, `version`, `linkCase`, `fromBug`, `fromCaseID`, `deleted`, `lastRunner`, `lastRunDate`, `lastRunResult`) VALUES
-(1, 2, 0, 0, 8, 0, 11, 1, 'Cache setup test', '', '', 3, 'feature', ',unittest,feature', '', '', '0000-00-00', '', '', 'normal', '', '1', 0, 'qa1', '2017-12-13 00:00:29', '', '0000-00-00', '', '0000-00-00 00:00:00', 1, '', 0, 0, '0', 'qa1', '2017-12-13 00:10:24', 'pass'),
-(2, 2, 0, 0, 8, 0, 10, 1, 'SEO setup test', '', '', 2, 'feature', ',feature', '', '', '0000-00-00', '', '', 'normal', '', '1', 0, 'qa1', '2017-12-13 00:04:09', '', '0000-00-00', 'qa1', '2017-12-13 00:18:17', 2, '', 0, 0, '0', 'qa1', '2017-12-13 00:23:48', 'fail'),
-(3, 2, 0, 0, 8, 0, 0, 1, 'general setup test', '', '', 3, 'feature', '', '', '', '0000-00-00', '', '', 'normal', '', '1', 0, 'qa1', '2017-12-13 00:13:25', '', '0000-00-00', '', '0000-00-00 00:00:00', 1, '', 0, 0, '0', '', '0000-00-00 00:00:00', '');
+(1, 2, 0, 0, 8, 0, 11, 1, 'Cache setup test', '', '', 3, 'feature', ',unittest,feature', '', '', '0000-00-00', '', '', 'normal', '', '1', 0, 'pm1', '2017-12-13 00:00:29', '', '0000-00-00', '', '0000-00-00 00:00:00', 1, '', 0, 0, '0', 'pm1', '2017-12-13 00:10:24', 'pass'),
+(2, 2, 0, 0, 8, 0, 10, 1, 'SEO setup test', '', '', 2, 'feature', ',feature', '', '', '0000-00-00', '', '', 'normal', '', '1', 0, 'pm1', '2017-12-13 00:04:09', '', '0000-00-00', 'pm1', '2017-12-13 00:18:17', 2, '', 0, 0, '0', 'pm1', '2017-12-13 00:23:48', 'fail'),
+(3, 2, 0, 0, 8, 0, 0, 1, 'general setup test', '', '', 3, 'feature', '', '', '', '0000-00-00', '', '', 'normal', '', '1', 0, 'pm1', '2017-12-13 00:13:25', '', '0000-00-00', '', '0000-00-00 00:00:00', 1, '', 0, 0, '0', '', '0000-00-00 00:00:00', '');
INSERT INTO `zt_casestep` (`id`, `parent`, `case`, `version`, `type`, `desc`, `expect`) VALUES
(1, 0, 1, 1, 'step', 'Switch on cache.', 'Cache is on.'),
@@ -159,15 +159,15 @@ INSERT INTO `zt_history` (`id`, `action`, `field`, `old`, `new`, `diff`) VALUES
(1, 7, 'desc', 'Finish developing system drive program.', 'Add advanced features such as remote desktop.', '001- Finish developing system drive program.\n001+ Add advanced features such as remote desktop.'),
(2, 8, 'desc', 'Finish developing general features.
', 'Finish developing general features for users.
', '001- Finish developing features that are often used.
\n001+ Finish developing general features for users.
'),
(3, 27, 'realStarted', '0000-00-00', '2017-12-12', ''),
-(4, 27, 'assignedTo', 'pg2', 'pm1', ''),
+(4, 27, 'assignedTo', 'pm1', 'pm1', ''),
(5, 27, 'status', 'wait', 'doing', ''),
(6, 28, 'left', '100', '64', ''),
(7, 28, 'consumed', '0', '8', ''),
(8, 29, 'realStarted', '0000-00-00', '2017-12-12', ''),
-(9, 29, 'assignedTo', 'pg2', 'pm1', ''),
+(9, 29, 'assignedTo', 'pm1', 'pm1', ''),
(10, 29, 'status', 'wait', 'doing', ''),
(11, 30, 'realStarted', '0000-00-00', '2017-12-12', ''),
-(12, 30, 'assignedTo', 'pg3', 'pm1', ''),
+(12, 30, 'assignedTo', 'pm1', 'pm1', ''),
(13, 30, 'status', 'wait', 'doing', ''),
(14, 31, 'left', '60', '0', ''),
(15, 31, 'consumed', '0', '60', ''),
@@ -183,11 +183,11 @@ INSERT INTO `zt_history` (`id`, `action`, `field`, `old`, `new`, `diff`) VALUES
(25, 79, 'realStarted', '0000-00-00', '2017-12-12', ''),
(26, 79, 'status', 'wait', 'doing', ''),
(27, 80, 'consumed', '0', '30', ''),
-(28, 80, 'assignedTo', 'pg1', 'pm1', ''),
+(28, 80, 'assignedTo', 'pm1', 'pm1', ''),
(29, 80, 'finishedDate', '', '2017-12-12 23:47:37', ''),
(30, 80, 'left', '40', '0', ''),
(31, 80, 'status', 'doing', 'done', ''),
-(32, 80, 'finishedBy', '', 'pg1', ''),
+(32, 80, 'finishedBy', '', 'pm1', ''),
(33, 84, 'left', '60', '50', ''),
(34, 84, 'consumed', '0', '8', ''),
(35, 87, 'pri', '3', '2', ''),
@@ -215,8 +215,8 @@ INSERT INTO `zt_module` (`id`, `root`, `branch`, `name`, `parent`, `path`, `grad
(10, 2, 0, 'Manage Articles', 7, ',7,10,', 2, 30, 'story', '', '', '0');
INSERT INTO `zt_product` (`id`, `name`, `code`, `line`, `type`, `status`, `desc`, `PO`, `QD`, `RD`, `acl`, `whitelist`, `createdBy`, `createdDate`, `createdVersion`, `order`, `deleted`) VALUES
-(1, 'windows 10', 'win10', 0, 'normal', 'normal', '', 'thePO', 'thePM', 'pg3', 'open', '', 'thePO', '2017-12-12 14:44:55', '9.6.3', 5, '0'),
-(2, 'Blog', 'blog', 0, 'normal', 'normal', 'A blogging system
', 'thePO', 'theQS', 'pg3', 'open', '', 'admin', '2017-12-12 23:28:29', '9.6.3', 10, '0');
+(1, 'windows 10', 'win10', 0, 'normal', 'normal', '', 'thePO', 'pm1', 'pm1', 'open', '', 'thePO', '2017-12-12 14:44:55', '9.6.3', 5, '0'),
+(2, 'Blog', 'blog', 0, 'normal', 'normal', 'A blogging system
', 'thePO', 'pm1', 'pm1', 'open', '', 'admin', '2017-12-12 23:28:29', '9.6.3', 10, '0');
INSERT INTO `zt_productplan` (`id`, `product`, `branch`, `title`, `desc`, `begin`, `end`, `deleted`) VALUES
(1, 1, 0, 'win10 v1.0', 'Finish developing general features for users.
', '2017-12-30', '2018-07-03', '0'),
@@ -285,13 +285,13 @@ INSERT INTO `zt_task` (`id`, `parent`, `project`, `module`, `story`, `storyVersi
(1, 0, 1, 1, 1, 1, 0, 'Offer up to 10 desktops to users.', 'devel', 3, 100, 8, 64, '0000-00-00', 'doing', '', NULL, 'User can do different tasks on different desktops.', 'pm1', '2017-12-12 15:05:06', 'pm1', '2017-12-12 15:12:17', '0000-00-00', '2017-12-12', '', '0000-00-00 00:00:00', '', '0000-00-00 00:00:00', '', '0000-00-00 00:00:00', '', 'pm1', '2017-12-12 15:13:13', '0'),
(2, 0, 1, 1, 2, 1, 0, 'Custom desktop wallpaper', 'devel', 3, 80, 0, 80, '0000-00-00', 'doing', '', NULL, '', 'pm1', '2017-12-12 15:05:06', 'pm1', '2017-12-12 15:13:25', '0000-00-00', '2017-12-12', '', '0000-00-00 00:00:00', '', '0000-00-00 00:00:00', '', '0000-00-00 00:00:00', '', 'pm1', '2017-12-12 15:13:25', '0'),
(3, 0, 1, 1, 3, 1, 0, 'Auto classify files.', 'devel', 3, 60, 60, 0, '0000-00-00', 'done', '', NULL, '', 'pm1', '2017-12-12 15:05:06', 'pm1', '2017-12-12 15:14:47', '0000-00-00', '2017-12-12', 'pm1', '2017-12-12 15:14:47', '', '0000-00-00 00:00:00', '', '0000-00-00 00:00:00', '', 'pm1', '2017-12-12 15:14:47', '0'),
-(4, 0, 1, 1, 3, 1, 0, 'File type configuration', 'devel', 4, 40, 0, 40, '0000-00-00', 'wait', '', NULL, '', 'pm1', '2017-12-12 15:05:06', 'pg3', '2017-12-12 15:05:06', '0000-00-00', '0000-00-00', '', '0000-00-00 00:00:00', '', '0000-00-00 00:00:00', '', '0000-00-00 00:00:00', '', '', '0000-00-00 00:00:00', '0'),
-(5, 0, 2, 8, 9, 1, 0, 'General backend setup', 'devel', 3, 40, 30, 0, '0000-00-00', 'done', '', NULL, '', 'pm1', '2017-12-12 23:45:14', 'pm1', '2017-12-12 23:47:37', '0000-00-00', '2017-12-12', 'pg1', '2017-12-12 23:47:37', '', '0000-00-00 00:00:00', '', '0000-00-00 00:00:00', '', 'pg1', '2017-12-12 23:47:37', '0'),
-(6, 0, 2, 8, 10, 1, 0, 'backend SEO setup', 'devel', 3, 50, 0, 50, '0000-00-00', 'wait', '', NULL, 'Set SEO switch and report.', 'pm1', '2017-12-12 23:45:14', 'pg2', '2017-12-12 23:45:14', '0000-00-00', '0000-00-00', '', '0000-00-00 00:00:00', '', '0000-00-00 00:00:00', '', '0000-00-00 00:00:00', '', '', '0000-00-00 00:00:00', '0'),
+(4, 0, 1, 1, 3, 1, 0, 'File type configuration', 'devel', 4, 40, 0, 40, '0000-00-00', 'wait', '', NULL, '', 'pm1', '2017-12-12 15:05:06', 'pm1', '2017-12-12 15:05:06', '0000-00-00', '0000-00-00', '', '0000-00-00 00:00:00', '', '0000-00-00 00:00:00', '', '0000-00-00 00:00:00', '', '', '0000-00-00 00:00:00', '0'),
+(5, 0, 2, 8, 9, 1, 0, 'General backend setup', 'devel', 3, 40, 30, 0, '0000-00-00', 'done', '', NULL, '', 'pm1', '2017-12-12 23:45:14', 'pm1', '2017-12-12 23:47:37', '0000-00-00', '2017-12-12', 'pm1', '2017-12-12 23:47:37', '', '0000-00-00 00:00:00', '', '0000-00-00 00:00:00', '', 'pm1', '2017-12-12 23:47:37', '0'),
+(6, 0, 2, 8, 10, 1, 0, 'backend SEO setup', 'devel', 3, 50, 0, 50, '0000-00-00', 'wait', '', NULL, 'Set SEO switch and report.', 'pm1', '2017-12-12 23:45:14', 'pm1', '2017-12-12 23:45:14', '0000-00-00', '0000-00-00', '', '0000-00-00 00:00:00', '', '0000-00-00 00:00:00', '', '0000-00-00 00:00:00', '', '', '0000-00-00 00:00:00', '0'),
(7, 0, 2, 8, 11, 1, 0, 'backend cache setup', 'devel', 3, 30, 8, 55, '0000-00-00', 'doing', '', NULL, 'Set cache switch and time.', 'pm1', '2017-12-12 23:45:14', 'pm1', '2017-12-12 23:45:53', '0000-00-00', '2017-12-12', '', '0000-00-00 00:00:00', '', '0000-00-00 00:00:00', '', '0000-00-00 00:00:00', '', 'pm1', '2017-12-12 23:45:53', '0'),
(8, 0, 2, 8, 12, 1, 0, 'backend security setup', 'devel', 3, 30, 0, 30, '0000-00-00', 'doing', '', NULL, '', 'pm1', '2017-12-12 23:45:14', 'pm1', '2017-12-12 23:45:14', '0000-00-00', '2017-12-12', '', '0000-00-00 00:00:00', '', '0000-00-00 00:00:00', '', '0000-00-00 00:00:00', '', 'pm1', '2017-12-12 23:45:35', '0'),
-(9, 0, 2, 9, 13, 1, 0, 'backend UI setup', 'devel', 3, 60, 8, 50, '0000-00-00', 'doing', '', NULL, '', 'pm1', '2017-12-12 23:45:14', 'pg1', '2017-12-12 23:45:14', '0000-00-00', '2017-12-12', '', '0000-00-00 00:00:00', '', '0000-00-00 00:00:00', '', '0000-00-00 00:00:00', '', 'pg3', '2017-12-12 23:51:14', '0'),
-(10, 0, 2, 6, 14, 1, 0, 'Page display', 'devel', 3, 60, 0, 60, '0000-00-00', 'wait', '', NULL, '', 'pm1', '2017-12-12 23:45:14', 'pg2', '2017-12-12 23:45:14', '0000-00-00', '0000-00-00', '', '0000-00-00 00:00:00', '', '0000-00-00 00:00:00', '', '0000-00-00 00:00:00', '', '', '0000-00-00 00:00:00', '0');
+(9, 0, 2, 9, 13, 1, 0, 'backend UI setup', 'devel', 3, 60, 8, 50, '0000-00-00', 'doing', '', NULL, '', 'pm1', '2017-12-12 23:45:14', 'pm1', '2017-12-12 23:45:14', '0000-00-00', '2017-12-12', '', '0000-00-00 00:00:00', '', '0000-00-00 00:00:00', '', '0000-00-00 00:00:00', '', 'pm1', '2017-12-12 23:51:14', '0'),
+(10, 0, 2, 6, 14, 1, 0, 'Page display', 'devel', 3, 60, 0, 60, '0000-00-00', 'wait', '', NULL, '', 'pm1', '2017-12-12 23:45:14', 'pm1', '2017-12-12 23:45:14', '0000-00-00', '0000-00-00', '', '0000-00-00 00:00:00', '', '0000-00-00 00:00:00', '', '0000-00-00 00:00:00', '', '', '0000-00-00 00:00:00', '0');
INSERT INTO `zt_taskestimate` (`id`, `task`, `date`, `left`, `consumed`, `account`, `work`) VALUES
(1, 1, '2017-12-12', 100, 0, 'pm1', NULL),
@@ -301,55 +301,37 @@ INSERT INTO `zt_taskestimate` (`id`, `task`, `date`, `left`, `consumed`, `accoun
(5, 3, '2017-12-12', 0, 60, 'pm1', 'Finish'),
(6, 8, '2017-12-12', 30, 0, 'pm1', NULL),
(7, 7, '2017-12-12', 55, 8, 'pm1', ''),
-(8, 9, '2017-12-12', 60, 0, 'pg1', NULL),
-(9, 5, '2017-12-12', 40, 0, 'pg1', NULL),
-(10, 5, '2017-12-12', 0, 30, 'pg1', NULL),
-(11, 9, '2017-12-13', 50, 8, 'pg3', 'Finish page design');
+(8, 9, '2017-12-12', 60, 0, 'pm1', NULL),
+(9, 5, '2017-12-12', 40, 0, 'pm1', NULL),
+(10, 5, '2017-12-12', 0, 30, 'pm1', NULL),
+(11, 9, '2017-12-13', 50, 8, 'pm1', 'Finish page design');
-INSERT INTO `zt_team` (`project`, `task`, `account`, `role`, `limited`, `join`, `days`, `hours`, `estimate`, `consumed`, `left`, `order`) VALUES
-(1, 0, 'thePO', 'Product Owner', 'no', '2017-12-12', 10, 7.0, 0.00, 0.00, 0.00, 0),
-(1, 0, 'pm1', 'Project Manager', 'no', '2017-12-12', 10, 7.0, 0.00, 0.00, 0.00, 0),
-(1, 0, 'pg2', 'Developer', 'no', '2017-12-12', 10, 7.0, 0.00, 0.00, 0.00, 0),
-(1, 0, 'pg3', 'Developer', 'no', '2017-12-12', 10, 7.0, 0.00, 0.00, 0.00, 0),
-(1, 0, 'qa1', 'Tester', 'no', '2017-12-12', 10, 7.0, 0.00, 0.00, 0.00, 0),
-(2, 0, 'pm1', 'Project Manager', 'no', '2017-12-12', 10, 7.0, 0.00, 0.00, 0.00, 0),
-(2, 0, 'pg1', 'Developer', 'no', '2017-12-12', 10, 7.0, 0.00, 0.00, 0.00, 0),
-(2, 0, 'pg2', 'Developer', 'no', '2017-12-12', 10, 7.0, 0.00, 0.00, 0.00, 0),
-(2, 0, 'pg3', 'Developer', 'no', '2017-12-12', 10, 7.0, 0.00, 0.00, 0.00, 0);
+INSERT INTO `zt_team` (`root`, `type`, `account`, `role`, `limited`, `join`, `days`, `hours`, `estimate`, `consumed`, `left`, `order`) VALUES
+(2, 'project', 'thePO', 'Product Owner', 'no', '2017-12-12', 10, 7.0, 0.00, 0.00, 0.00, 0),
+(2, 'project', 'pm1', 'Project Manager', 'no', '2017-12-12', 10, 7.0, 0.00, 0.00, 0.00, 0),
+(1, 'project', 'thePO', 'Product Owner', 'no', '2017-12-12', 10, 7.0, 0.00, 0.00, 0.00, 0),
+(1, 'project', 'pm1', 'Project Manager', 'no', '2017-12-12', 10, 7.0, 0.00, 0.00, 0.00, 0);
INSERT INTO `zt_testresult` (`id`, `run`, `case`, `version`, `caseResult`, `stepResults`, `lastRunner`, `date`) VALUES
-(1, 1, 2, 1, 'fail', 'a:3:{i:3;a:2:{s:6:\"result\";s:4:\"pass\";s:4:\"real\";s:0:\"\";}i:4;a:2:{s:6:\"result\";s:4:\"fail\";s:4:\"real\";s:24:\"Not all 400 page is displayed.\";}i:5;a:2:{s:6:\"result\";s:4:\"pass\";s:4:\"real\";s:0:\"\";}}', 'qa1', '2017-12-13 00:08:52'),
-(2, 2, 1, 1, 'pass', 'a:2:{i:1;a:2:{s:6:\"result\";s:4:\"pass\";s:4:\"real\";s:0:\"\";}i:2;a:2:{s:6:\"result\";s:4:\"pass\";s:4:\"real\";s:0:\"\";}}', 'qa1', '2017-12-13 00:10:24'),
-(3, 0, 2, 2, 'fail', 'a:4:{i:7;a:2:{s:6:\"result\";s:4:\"fail\";s:4:\"real\";s:42:\"‘Contact Us’ page is missing in sitemap.\";}i:8;a:2:{s:6:\"result\";s:4:\"fail\";s:4:\"real\";s:36:\"400 page is missing.‘/notExitPage’;\";}i:9;a:2:{s:6:\"result\";s:4:\"pass\";s:4:\"real\";s:0:\"\";}i:10;a:2:{s:6:\"result\";s:3:\"n/a\";s:4:\"real\";s:45:\"Blogroll cannot be added, and database error prompts.\";}}', 'qa1', '2017-12-13 00:23:41'),
-(4, 0, 2, 2, 'fail', 'a:4:{i:7;a:2:{s:6:\"result\";s:4:\"fail\";s:4:\"real\";s:42:\"‘Contact Us’ page is missing in sitemap.\";}i:8;a:2:{s:6:\"result\";s:4:\"fail\";s:4:\"real\";s:36:\"400 page is missing.‘/notExitPage’;\";}i:9;a:2:{s:6:\"result\";s:4:\"pass\";s:4:\"real\";s:0:\"\";}i:10;a:2:{s:6:\"result\";s:4:\"fail\";s:4:\"real\";s:45:\"Blogroll cannot be added, and database error prompts.\";}}', 'qa1', '2017-12-13 00:23:48');
+(1, 1, 2, 1, 'fail', 'a:3:{i:3;a:2:{s:6:\"result\";s:4:\"pass\";s:4:\"real\";s:0:\"\";}i:4;a:2:{s:6:\"result\";s:4:\"fail\";s:4:\"real\";s:24:\"Not all 400 page is displayed.\";}i:5;a:2:{s:6:\"result\";s:4:\"pass\";s:4:\"real\";s:0:\"\";}}', 'pm1', '2017-12-13 00:08:52'),
+(2, 2, 1, 1, 'pass', 'a:2:{i:1;a:2:{s:6:\"result\";s:4:\"pass\";s:4:\"real\";s:0:\"\";}i:2;a:2:{s:6:\"result\";s:4:\"pass\";s:4:\"real\";s:0:\"\";}}', 'pm1', '2017-12-13 00:10:24'),
+(3, 0, 2, 2, 'fail', 'a:4:{i:7;a:2:{s:6:\"result\";s:4:\"fail\";s:4:\"real\";s:42:\"‘Contact Us’ page is missing in sitemap.\";}i:8;a:2:{s:6:\"result\";s:4:\"fail\";s:4:\"real\";s:36:\"400 page is missing.‘/notExitPage’;\";}i:9;a:2:{s:6:\"result\";s:4:\"pass\";s:4:\"real\";s:0:\"\";}i:10;a:2:{s:6:\"result\";s:3:\"n/a\";s:4:\"real\";s:45:\"Blogroll cannot be added, and database error prompts.\";}}', 'pm1', '2017-12-13 00:23:41'),
+(4, 0, 2, 2, 'fail', 'a:4:{i:7;a:2:{s:6:\"result\";s:4:\"fail\";s:4:\"real\";s:42:\"‘Contact Us’ page is missing in sitemap.\";}i:8;a:2:{s:6:\"result\";s:4:\"fail\";s:4:\"real\";s:36:\"400 page is missing.‘/notExitPage’;\";}i:9;a:2:{s:6:\"result\";s:4:\"pass\";s:4:\"real\";s:0:\"\";}i:10;a:2:{s:6:\"result\";s:4:\"fail\";s:4:\"real\";s:45:\"Blogroll cannot be added, and database error prompts.\";}}', 'pm1', '2017-12-13 00:23:48');
INSERT INTO `zt_testrun` (`id`, `task`, `case`, `version`, `assignedTo`, `lastRunner`, `lastRunDate`, `lastRunResult`, `status`) VALUES
-(1, 1, 2, 2, 'theQS', 'qa1', '2017-12-13 00:08:52', 'fail', 'done'),
-(2, 1, 1, 1, 'qa1', 'qa1', '2017-12-13 00:10:24', 'pass', 'done');
+(1, 1, 2, 2, 'pm1', 'pm1', '2017-12-13 00:08:52', 'fail', 'done'),
+(2, 1, 1, 1, 'pm1', 'pm1', '2017-12-13 00:10:24', 'pass', 'done');
INSERT INTO `zt_testsuite` (`id`, `product`, `name`, `desc`, `type`, `addedBy`, `addedDate`, `lastEditedBy`, `lastEditedDate`, `deleted`) VALUES
-(1, 2, 'Testsuite', 'Testsuite', 'public', 'qa1', '2017-12-13 00:05:13', '', '0000-00-00 00:00:00', '0');
+(1, 2, 'Testsuite', 'Testsuite', 'public', 'pm1', '2017-12-13 00:05:13', '', '0000-00-00 00:00:00', '0');
INSERT INTO `zt_testtask` (`id`, `name`, `product`, `project`, `build`, `owner`, `pri`, `begin`, `end`, `mailto`, `desc`, `report`, `status`, `deleted`) VALUES
(1, 'test for blog v0.1', 2, 2, '2', 'thePO', 0, '2018-01-05', '2018-01-20', '', '', '', 'wait', '0');
INSERT INTO `zt_user` (`dept`, `account`, `password`, `role`, `realname`, `nickname`, `commiter`, `avatar`, `birthday`, `gender`, `email`, `skype`, `qq`, `yahoo`, `gtalk`, `wangwang`, `mobile`, `phone`, `address`, `zipcode`, `join`, `visits`, `ip`, `last`, `fails`, `locked`, `ranzhi`, `score`, `scoreLevel`, `deleted`) VALUES
(1, 'thePO', 'e10adc3949ba59abbe56e057f20f883e', 'po', 'Richard', '', '', '', '0000-00-00', 'm', '', '', '', '', '', '', '', '', '', '', '0000-00-00', 3, '127.0.0.1', 1513093950, 0, '0000-00-00 00:00:00', '', 0, 0, '0'),
-(5, 'pm1', 'e10adc3949ba59abbe56e057f20f883e', 'pm', 'Daniel', '', '', '', '0000-00-00', 'm', '', '', '', '', '', '', '', '', '', '', '0000-00-00', 2, '127.0.0.1', 1513093318, 0, '0000-00-00 00:00:00', '', 0, 0, '0'),
-(6, 'pm2', 'e10adc3949ba59abbe56e057f20f883e', 'pm', 'Matthew', '', '', '', '0000-00-00', 'm', '', '', '', '', '', '', '', '', '', '', '0000-00-00', 0, '', 0, 0, '0000-00-00 00:00:00', '', 0, 0, '0'),
-(5, 'pg1', 'e10adc3949ba59abbe56e057f20f883e', 'dev', 'Mark', '', '', '', '0000-00-00', 'm', '', '', '', '', '', '', '', '', '', '', '0000-00-00', 1, '127.0.0.1', 1513093595, 0, '0000-00-00 00:00:00', '', 0, 0, '0'),
-(5, 'pg2', 'e10adc3949ba59abbe56e057f20f883e', 'dev', 'Andrew', '', '', '', '0000-00-00', 'm', '', '', '', '', '', '', '', '', '', '', '0000-00-00', 0, '', 0, 0, '0000-00-00 00:00:00', '', 0, 0, '0'),
-(5, 'pg3', 'e10adc3949ba59abbe56e057f20f883e', 'dev', 'Jean', '', '', '', '0000-00-00', 'm', '', '', '', '', '', '', '', '', '', '', '0000-00-00', 2, '127.0.0.1', 1513094149, 0, '0000-00-00 00:00:00', '', 0, 0, '0'),
-(3, 'thePM', 'e10adc3949ba59abbe56e057f20f883e', 'qd', 'Tracy', '', '', '', '0000-00-00', 'm', '', '', '', '', '', '', '', '', '', '', '0000-00-00', 0, '', 0, 0, '0000-00-00 00:00:00', '', 0, 0, '1'),
-(3, 'qa1', 'e10adc3949ba59abbe56e057f20f883e', 'qa', 'Robert', '', '', '', '0000-00-00', 'm', '', '', '', '', '', '', '', '', '', 'admin', '0000-00-00', 2, '127.0.0.1', 1513094253, 0, '0000-00-00 00:00:00', '', 0, 0, '0'),
-(3, 'theQS', 'e10adc3949ba59abbe56e057f20f883e', 'qd', 'Hannah', '', '', '', '0000-00-00', 'm', '', '', '', '', '', '', '', '', '', '', '0000-00-00', 1, '127.0.0.1', 1513063356, 0, '0000-00-00 00:00:00', '', 0, 0, '0');
+(5, 'pm1', 'e10adc3949ba59abbe56e057f20f883e', 'pm', 'Daniel', '', '', '', '0000-00-00', 'm', '', '', '', '', '', '', '', '', '', '', '0000-00-00', 2, '127.0.0.1', 1513093318, 0, '0000-00-00 00:00:00', '', 0, 0, '0');
INSERT INTO `zt_usergroup` (`account`, `group`) VALUES
-('pg1', 2),
-('pg2', 2),
-('pg3', 2),
('pm1', 4),
-('pm2', 4),
-('qa1', 3),
-('thePM', 8),
('thePO', 5);
diff --git a/db/update9.7.sql b/db/update9.7.sql
new file mode 100644
index 0000000000..0757cd8f41
--- /dev/null
+++ b/db/update9.7.sql
@@ -0,0 +1,33 @@
+ALTER TABLE `zt_story` CHANGE `stage` `stage` ENUM('','wait','planned','projected','developing','developed','testing','tested','verified','released','closed') CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'wait';
+ALTER TABLE `zt_todo` ADD `config` varchar(255) NOT NULL;
+ALTER TABLE `zt_todo` ADD `cycle` tinyint unsigned NOT NULL DEFAULT '0' AFTER `type`;
+ALTER TABLE `zt_todo` ADD `assignedTo` VARCHAR(30) NOT NULL DEFAULT '' AFTER `config`;
+ALTER TABLE `zt_todo` ADD `assignedBy` VARCHAR(30) NOT NULL DEFAULT '' AFTER `assignedTo`;
+ALTER TABLE `zt_todo` ADD `assignedDate` DATETIME NOT NULL AFTER `assignedBy`;
+ALTER TABLE `zt_todo` ADD `finishedBy` VARCHAR(30) NOT NULL DEFAULT '' AFTER `assignedDate`;
+ALTER TABLE `zt_todo` ADD `finishedDate` DATETIME NOT NULL AFTER `finishedBy`;
+ALTER TABLE `zt_todo` ADD `closedBy` VARCHAR(30) NOT NULL DEFAULT '' AFTER `finishedDate`;
+ALTER TABLE `zt_todo` ADD `closedDate` DATETIME NOT NULL AFTER `closedBy`;
+ALTER TABLE `zt_todo` CHANGE `status` `status` ENUM('wait','doing','done','closed') CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'wait';
+
+INSERT INTO `zt_cron` (`m`, `h`, `dom`, `mon`, `dow`, `command`, `remark`, `type`, `buildin`, `status`, `lastTime`) VALUES
+('1', '1', '*', '*', '*', 'moduleName=todo&methodName=createCycle', '生成周期性待办', 'zentao', 1, 'normal', '0000-00-00 00:00:00');
+
+
+ALTER TABLE `zt_projectproduct` ADD `plan` MEDIUMINT(8) UNSIGNED NOT NULL AFTER `branch`;
+
+CREATE TABLE IF NOT EXISTS `zt_notify` (
+ `id` mediumint unsigned NOT NULL AUTO_INCREMENT PRIMARY KEY,
+ `objectType` varchar(50) NOT NULL,
+ `objectID` mediumint unsigned NOT NULL,
+ `action` mediumint NOT NULL,
+ `toList` varchar(255) NOT NULL,
+ `ccList` text NOT NULL,
+ `subject` varchar(255) NOT NULL,
+ `data` text NOT NULL,
+ `createdBy` char(30) NOT NULL,
+ `createdDate` datetime NOT NULL,
+ `sendTime` datetime NOT NULL,
+ `status` varchar(10) NOT NULL DEFAULT 'wait',
+ `failReason` text NOT NULL
+) ENGINE='MyISAM' COLLATE 'utf8_general_ci';
diff --git a/db/zentao.sql b/db/zentao.sql
index bafc633bfb..c3180eb72f 100644
--- a/db/zentao.sql
+++ b/db/zentao.sql
@@ -407,12 +407,28 @@ CREATE TABLE IF NOT EXISTS `zt_module` (
PRIMARY KEY (`id`),
KEY `module` (`root`,`type`,`path`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
+-- DROP TABLE IF EXISTS `zt_notify`;
+CREATE TABLE IF NOT EXISTS `zt_notify` (
+ `id` mediumint unsigned NOT NULL AUTO_INCREMENT PRIMARY KEY,
+ `objectType` varchar(50) NOT NULL,
+ `objectID` mediumint unsigned NOT NULL,
+ `action` mediumint NOT NULL,
+ `toList` varchar(255) NOT NULL,
+ `ccList` text NOT NULL,
+ `subject` varchar(255) NOT NULL,
+ `data` text NOT NULL,
+ `createdBy` char(30) NOT NULL,
+ `createdDate` datetime NOT NULL,
+ `sendTime` datetime NOT NULL,
+ `status` varchar(10) NOT NULL DEFAULT 'wait',
+ `failReason` text NOT NULL
+) ENGINE='MyISAM' COLLATE 'utf8_general_ci';
-- DROP TABLE IF EXISTS `zt_product`;
CREATE TABLE IF NOT EXISTS `zt_product` (
`id` mediumint(8) unsigned NOT NULL auto_increment,
`name` varchar(90) NOT NULL,
`code` varchar(45) NOT NULL,
- `line` mediumint(8) NOT NULL,
+ `line` mediumint(8) NOT NULL,
`type` varchar(30) NOT NULL default 'normal',
`status` varchar(30) NOT NULL default '',
`desc` text NOT NULL,
@@ -483,6 +499,7 @@ CREATE TABLE IF NOT EXISTS `zt_projectproduct` (
`project` mediumint(8) unsigned NOT NULL,
`product` mediumint(8) unsigned NOT NULL,
`branch` mediumint(8) unsigned NOT NULL,
+ `plan` mediumint(8) unsigned NOT NULL,
PRIMARY KEY (`project`,`product`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- DROP TABLE IF EXISTS `zt_projectstory`;
@@ -528,7 +545,7 @@ CREATE TABLE IF NOT EXISTS `zt_story` (
`estimate` float unsigned NOT NULL,
`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') NOT NULL DEFAULT 'wait',
+ `stage` enum('','wait','planned','projected','developing','developed','testing','tested','verified','released', 'closed') NOT NULL DEFAULT 'wait',
`mailto` text,
`openedBy` varchar(30) NOT NULL default '',
`openedDate` datetime NOT NULL,
@@ -627,8 +644,8 @@ CREATE TABLE IF NOT EXISTS `zt_taskestimate` (
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- DROP TABLE IF EXISTS `zt_team`;
CREATE TABLE IF NOT EXISTS `zt_team` (
- `project` mediumint(8) unsigned NOT NULL default '0',
- `task` mediumint(8) NOT NULL DEFAULT '0',
+ `root` mediumint(8) unsigned NOT NULL default '0',
+ `type` enum('project','task') NOT NULL DEFAULT 'project',
`account` char(30) NOT NULL default '',
`role` char(30) NOT NULL default '',
`limited` char(8) NOT NULL default 'no',
@@ -638,9 +655,8 @@ CREATE TABLE IF NOT EXISTS `zt_team` (
`estimate` DECIMAL(12,2) UNSIGNED NOT NULL DEFAULT '0',
`consumed` DECIMAL(12,2) UNSIGNED NOT NULL DEFAULT '0',
`left` DECIMAL(12,2) UNSIGNED NOT NULL DEFAULT '0',
- `order` TINYINT(3) NOT NULL DEFAULT '0',
- PRIMARY KEY (`project`, `task`, `account`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
+ `order` TINYINT(3) NOT NULL DEFAULT '0'
+ ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- DROP TABLE IF EXISTS `zt_testreport`;
CREATE TABLE IF NOT EXISTS `zt_testreport` (
`id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
@@ -699,11 +715,11 @@ CREATE TABLE IF NOT EXISTS `zt_testsuite` (
`desc` text NOT NULL,
`type` varchar(20) NOT NULL,
`addedBy` char(30) NOT NULL,
- `addedDate` datetime NOT NULL,
+ `addedDate` datetime NOT NULL,
`lastEditedBy` char(30) NOT NULL,
- `lastEditedDate` datetime NOT NULL,
+ `lastEditedDate` datetime NOT NULL,
`deleted` enum('0','1') NOT NULL,
- PRIMARY KEY (`id`)
+ PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- DROP TABLE IF EXISTS `zt_testtask`;
CREATE TABLE IF NOT EXISTS `zt_testtask` (
@@ -726,19 +742,28 @@ CREATE TABLE IF NOT EXISTS `zt_testtask` (
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- DROP TABLE IF EXISTS `zt_todo`;
CREATE TABLE IF NOT EXISTS `zt_todo` (
- `id` mediumint(8) unsigned NOT NULL auto_increment,
+ `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`account` char(30) NOT NULL,
`date` date NOT NULL,
`begin` smallint(4) unsigned zerofill NOT NULL,
`end` smallint(4) unsigned zerofill NOT NULL,
`type` char(10) NOT NULL,
- `idvalue` mediumint(8) unsigned NOT NULL default '0',
+ `cycle` tinyint(3) unsigned NOT NULL DEFAULT '0',
+ `idvalue` mediumint(8) unsigned NOT NULL DEFAULT '0',
`pri` tinyint(3) unsigned NOT NULL,
`name` char(150) NOT NULL,
`desc` text NOT NULL,
- `status` enum('wait','doing','done') NOT NULL DEFAULT 'wait',
+ `status` enum('wait','doing','done','closed') NOT NULL DEFAULT 'wait',
`private` tinyint(1) NOT NULL,
- PRIMARY KEY (`id`),
+ `config` varchar(255) NOT NULL,
+ `assignedTo` varchar(30) NOT NULL DEFAULT '',
+ `assignedBy` varchar(30) NOT NULL DEFAULT '',
+ `assignedDate` datetime NOT NULL,
+ `finishedBy` varchar(30) NOT NULL DEFAULT '',
+ `finishedDate` datetime NOT NULL,
+ `closedBy` varchar(30) NOT NULL DEFAULT '',
+ `closedDate` datetime NOT NULL,
+ PRIMARY KEY (`id`),
KEY `todo` (`account`,`date`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- DROP TABLE IF EXISTS `zt_user`;
@@ -771,7 +796,7 @@ CREATE TABLE IF NOT EXISTS `zt_user` (
`fails` tinyint(5) NOT NULL default '0',
`locked` datetime NOT NULL default '0000-00-00 00:00:00',
`ranzhi` char(30) NOT NULL default '',
- `score` INT(12) NOT NULL DEFAULT '0',
+ `score` INT(11) NOT NULL DEFAULT '0',
`scoreLevel` INT(11) NOT NULL DEFAULT '0',
`deleted` enum('0','1') NOT NULL default '0',
PRIMARY KEY (`id`),
@@ -903,7 +928,8 @@ INSERT INTO `zt_cron` (`m`, `h`, `dom`, `mon`, `dow`, `command`, `remark`, `type
('30', '0', '*', '*', '*', 'moduleName=backup&methodName=backup', '备份数据和附件', 'zentao', 1, 'normal', '0000-00-00 00:00:00'),
('*/5', '*', '*', '*', '*', 'moduleName=mail&methodName=asyncSend', '异步发信', 'zentao', 1, 'normal', '0000-00-00 00:00:00'),
('*/5', '*', '*', '*', '*', 'moduleName=webhook&methodName=asyncSend', '异步发送Webhook', 'zentao', 1, 'normal', '0000-00-00 00:00:00'),
-('*/5', '*', '*', '*', '*', 'moduleName=admin&methodName=deleteLog', '删除过期日志', 'zentao', 1, 'normal', '0000-00-00 00:00:00');
+('*/5', '*', '*', '*', '*', 'moduleName=admin&methodName=deleteLog', '删除过期日志', 'zentao', 1, 'normal', '0000-00-00 00:00:00'),
+('1', '1', '*', '*', '*', 'moduleName=todo&methodName=createCycle', '生成周期性待办', 'zentao', 1, 'normal', '0000-00-00 00:00:00');
INSERT INTO `zt_group` (`id`, `name`, `role`, `desc`) VALUES
(1, 'ADMIN', 'admin', 'for administrator'),
@@ -1062,6 +1088,8 @@ INSERT INTO `zt_grouppriv` (`group`, `module`, `method`) VALUES
(1, 'mail', 'reset'),
(1, 'mail', 'save'),
(1, 'mail', 'test'),
+(1, 'message', 'index'),
+(1, 'message', 'setting'),
(1, 'misc', 'ping'),
(1, 'my', 'bug'),
(1, 'my', 'changePassword'),
@@ -1129,6 +1157,7 @@ INSERT INTO `zt_grouppriv` (`group`, `module`, `method`) VALUES
(1, 'project', 'index'),
(1, 'project', 'all'),
(1, 'project', 'linkStory'),
+(1, 'project', 'importPlanStories'),
(1, 'project', 'manageMembers'),
(1, 'project', 'manageProducts'),
(1, 'project', 'order'),
@@ -1292,6 +1321,7 @@ INSERT INTO `zt_grouppriv` (`group`, `module`, `method`) VALUES
(1, 'todo', 'batchEdit'),
(1, 'todo', 'batchFinish'),
(1, 'todo', 'create'),
+(1, 'todo', 'createCycle'),
(1, 'todo', 'delete'),
(1, 'todo', 'edit'),
(1, 'todo', 'export'),
@@ -1486,12 +1516,16 @@ INSERT INTO `zt_grouppriv` (`group`, `module`, `method`) VALUES
(2, 'todo', 'batchEdit'),
(2, 'todo', 'batchFinish'),
(2, 'todo', 'create'),
+(2, 'todo', 'createCycle'),
(2, 'todo', 'delete'),
(2, 'todo', 'edit'),
(2, 'todo', 'export'),
(2, 'todo', 'finish'),
(2, 'todo', 'import2Today'),
(2, 'todo', 'view'),
+(2, 'todo', 'assignTo'),
+(2, 'todo', 'activate'),
+(2, 'todo', 'close'),
(2, 'user', 'bug'),
(2, 'user', 'deleteContacts'),
(2, 'user', 'dynamic'),
@@ -1701,6 +1735,7 @@ INSERT INTO `zt_grouppriv` (`group`, `module`, `method`) VALUES
(3, 'todo', 'batchEdit'),
(3, 'todo', 'batchFinish'),
(3, 'todo', 'create'),
+(3, 'todo', 'createCycle'),
(3, 'todo', 'delete'),
(3, 'todo', 'edit'),
(3, 'todo', 'export'),
@@ -1838,6 +1873,7 @@ INSERT INTO `zt_grouppriv` (`group`, `module`, `method`) VALUES
(4, 'project', 'index'),
(4, 'project', 'all'),
(4, 'project', 'linkStory'),
+(4, 'project', 'importPlanStories'),
(4, 'project', 'manageMembers'),
(4, 'project', 'manageProducts'),
(4, 'project', 'order'),
@@ -1925,12 +1961,16 @@ INSERT INTO `zt_grouppriv` (`group`, `module`, `method`) VALUES
(4, 'todo', 'batchEdit'),
(4, 'todo', 'batchFinish'),
(4, 'todo', 'create'),
+(4, 'todo', 'createCycle'),
(4, 'todo', 'delete'),
(4, 'todo', 'edit'),
(4, 'todo', 'export'),
(4, 'todo', 'finish'),
(4, 'todo', 'import2Today'),
(4, 'todo', 'view'),
+(4, 'todo', 'assignTo'),
+(4, 'todo', 'activate'),
+(4, 'todo', 'close'),
(4, 'tree', 'browse'),
(4, 'tree', 'browseTask'),
(4, 'tree', 'delete'),
@@ -2078,6 +2118,7 @@ INSERT INTO `zt_grouppriv` (`group`, `module`, `method`) VALUES
(5, 'project', 'index'),
(5, 'project', 'all'),
(5, 'project', 'linkStory'),
+(5, 'project', 'importPlanStories'),
(5, 'project', 'manageMembers'),
(5, 'project', 'manageProducts'),
(5, 'project', 'order'),
@@ -2182,12 +2223,16 @@ INSERT INTO `zt_grouppriv` (`group`, `module`, `method`) VALUES
(5, 'todo', 'batchEdit'),
(5, 'todo', 'batchFinish'),
(5, 'todo', 'create'),
+(5, 'todo', 'createCycle'),
(5, 'todo', 'delete'),
(5, 'todo', 'edit'),
(5, 'todo', 'export'),
(5, 'todo', 'finish'),
(5, 'todo', 'import2Today'),
(5, 'todo', 'view'),
+(5, 'todo', 'assignTo'),
+(5, 'todo', 'activate'),
+(5, 'todo', 'close'),
(5, 'tree', 'browse'),
(5, 'tree', 'browseTask'),
(5, 'tree', 'delete'),
@@ -2326,6 +2371,7 @@ INSERT INTO `zt_grouppriv` (`group`, `module`, `method`) VALUES
(6, 'project', 'index'),
(6, 'project', 'all'),
(6, 'project', 'linkStory'),
+(6, 'project', 'importPlanStories'),
(6, 'project', 'manageMembers'),
(6, 'project', 'manageProducts'),
(6, 'project', 'order'),
@@ -2411,12 +2457,16 @@ INSERT INTO `zt_grouppriv` (`group`, `module`, `method`) VALUES
(6, 'todo', 'batchEdit'),
(6, 'todo', 'batchFinish'),
(6, 'todo', 'create'),
+(6, 'todo', 'createCycle'),
(6, 'todo', 'delete'),
(6, 'todo', 'edit'),
(6, 'todo', 'export'),
(6, 'todo', 'finish'),
(6, 'todo', 'import2Today'),
(6, 'todo', 'view'),
+(6, 'todo', 'assignTo'),
+(6, 'todo', 'activate'),
+(6, 'todo', 'close'),
(6, 'tree', 'browse'),
(6, 'tree', 'browseTask'),
(6, 'tree', 'delete'),
@@ -2554,6 +2604,7 @@ INSERT INTO `zt_grouppriv` (`group`, `module`, `method`) VALUES
(7, 'project', 'index'),
(7, 'project', 'all'),
(7, 'project', 'linkStory'),
+(7, 'project', 'importPlanStories'),
(7, 'project', 'manageProducts'),
(7, 'project', 'story'),
(7, 'project', 'task'),
@@ -2652,12 +2703,16 @@ INSERT INTO `zt_grouppriv` (`group`, `module`, `method`) VALUES
(7, 'todo', 'batchEdit'),
(7, 'todo', 'batchFinish'),
(7, 'todo', 'create'),
+(7, 'todo', 'createCycle'),
(7, 'todo', 'delete'),
(7, 'todo', 'edit'),
(7, 'todo', 'export'),
(7, 'todo', 'finish'),
(7, 'todo', 'import2Today'),
(7, 'todo', 'view'),
+(7, 'todo', 'assignTo'),
+(7, 'todo', 'activate'),
+(7, 'todo', 'close'),
(7, 'tree', 'browse'),
(7, 'tree', 'browseTask'),
(7, 'tree', 'delete'),
@@ -2905,12 +2960,16 @@ INSERT INTO `zt_grouppriv` (`group`, `module`, `method`) VALUES
(8, 'todo', 'batchEdit'),
(8, 'todo', 'batchFinish'),
(8, 'todo', 'create'),
+(8, 'todo', 'createCycle'),
(8, 'todo', 'delete'),
(8, 'todo', 'edit'),
(8, 'todo', 'export'),
(8, 'todo', 'finish'),
(8, 'todo', 'import2Today'),
(8, 'todo', 'view'),
+(8, 'todo', 'assignTo'),
+(8, 'todo', 'activate'),
+(8, 'todo', 'close'),
(8, 'tree', 'browse'),
(8, 'tree', 'browseTask'),
(8, 'tree', 'delete'),
@@ -3071,12 +3130,16 @@ INSERT INTO `zt_grouppriv` (`group`, `module`, `method`) VALUES
(9, 'todo', 'batchEdit'),
(9, 'todo', 'batchFinish'),
(9, 'todo', 'create'),
+(9, 'todo', 'createCycle'),
(9, 'todo', 'delete'),
(9, 'todo', 'edit'),
(9, 'todo', 'export'),
(9, 'todo', 'finish'),
(9, 'todo', 'import2Today'),
(9, 'todo', 'view'),
+(9, 'todo', 'assignTo'),
+(9, 'todo', 'activate'),
+(9, 'todo', 'close'),
(9, 'user', 'batchCreate'),
(9, 'user', 'batchEdit'),
(9, 'user', 'bug'),
@@ -3185,12 +3248,16 @@ INSERT INTO `zt_grouppriv` (`group`, `module`, `method`) VALUES
(10, 'todo', 'batchEdit'),
(10, 'todo', 'batchFinish'),
(10, 'todo', 'create'),
+(10, 'todo', 'createCycle'),
(10, 'todo', 'delete'),
(10, 'todo', 'edit'),
(10, 'todo', 'export'),
(10, 'todo', 'finish'),
(10, 'todo', 'import2Today'),
(10, 'todo', 'view'),
+(10, 'todo', 'assignTo'),
+(10, 'todo', 'activate'),
+(10, 'todo', 'close'),
(10, 'user', 'bug'),
(10, 'user', 'dynamic'),
(10, 'user', 'profile'),
diff --git a/doc/CHANGELOG b/doc/CHANGELOG
index 4d553aefc7..1bfeea193e 100644
--- a/doc/CHANGELOG
+++ b/doc/CHANGELOG
@@ -1,4 +1,169 @@
-2017-11-06 9.6
+2017-01-17 9.8.stable
+完成的需求
+683 todo增加转需求,bug或者任务的功能
+1678 todo增加评论功能。
+1680 todo增加处理流程
+1681 待办实现周期性待办功能
+1923 报表可以选择显示的方式
+1952 移植然之里面的消息通知功能
+2001 调整导出页面的格式
+2037 测试用例关联需求时候关闭需求也列出
+2103 禅道中所有创建编辑页面的下拉框都增加搜索定位功能
+2120 需求任务bug编辑页面抄送给字段可以选择联系人
+2151 加强计划和项目之间的关系
+2243 测试版本的用例列表增加按照指派给分组。
+2245 统计-组织-员工负载表显示未安排任务的人员信息
+2339 增加指派给我的区块
+2369 处理下目标服务器积极拒绝链接的错误提示
+2380 生成测试报告时可以选择多个测试单
+2401 利用浏览器的消息提醒机制实现消息提醒
+2409 每日提醒邮件增加任务和bug的超时提醒内容
+2426 优化文档详情页面的排版
+2428 邮件中需求任务bug用例标题显示设置的颜色
+2460 Bug导入模版中增加截止日期字段的导入
+2479 zt_mailqueue 和 zt_webhookdatas 合并成zt_notify
+2484 zt_team增加type和root字段,project和task 改成 root
+2499 实现集中的消息处理机制
+2523 补充最近的修改记录
+2566 config下面的配置文件,应该最后加载my.php
+2568 搜索表单的字段也可以支持搜索
+2572 通过编辑修改需求plan的时候,计算需求的stage字段。
+2573 计划的日期可以设置为待定
+2574 需求关闭之后,stage也都改成closed。
+2575 丰富计划列表页面的信息
+2591 help/changeLog的页面中,显示最新的changeLog
+2592 修改‘个人档案’中的翻译
+
+修复的Bug
+1331 项目需求下,如果需求排序权限处于未开启的情况;在选择多个复选框是会出问题
+1341 点击任务开始剩余工时选择0点击确定完成任务的时候没有把指派人更换成创建人
+1343 待评审状态用例,批量编辑后,状态会更新为空
+1347 bug编辑日期可以输入汉字且被保存
+1355 zentaopms/module/dev/model.php 代码优化
+1359 看板,未开始的任务,不能拖拽到进行中。
+1360 未完全修改#2518需求中的所有项目
+1362 创建子任务使用粘贴文本,保存超过10条时,10条以上的数据不保存
+1363 后台自定义日期必填项无效
+1365 后台-安全,设置密码安全为强时,满足安全强度,登录时也会提示密码强度小
+1367 我的地盘-任务,子任务在任务列表中不显示标签
+1369 备注权限(action comment),取消视图维护,后台权限验证。
+1371 文件格式附件预览的时候报错
+1373 编辑多人任务,可以选择出了项目团队成员之外的其他成员。
+1374 多人任务,完成,转交,指派人,可以选择非项目团队成员
+1377 用例内容包含特殊字符时,导出内容不正确
+1378 编辑用户信息,填写邮箱有空格会提示email不合法
+1379 任务列表,任务条数大于每页显示条数时,新建子任务会显示在最后一页
+1382 php7 打开项目中的树状图报错 字符串转数组问题
+1384 项目-测试 操作栏中的测试报告按钮点击后跳转到创建报告页面
+1385 测试-用例 从用例库导入用例的搜索中所属模块显示的不是用例库中的模块
+1386 项目任务列表的优先级显示错误
+1387 后台-自定义-需求-评审流程,设置强制评审人员,保存不上
+1388 修改父子任务的所属项目无法整体移动
+
+2017-12-22 9.7.stable
+完成的需求
+2475 批量操作时增加列中切换快捷键支持
+2496 英文专业版中部分画面带有中文字符
+2515 调整国际版的发信功能
+2514 打包一个国际版的安装包
+2537 The report of bug resolve里面没有做翻译
+2532 英文版一键安装包里面需要跳转
+2530 翻译国际版一键安装包的英文界面
+2558 修正两个画面的翻译
+2557 修正五个画面的排版细节
+2556 修正 “修改密码”画面的排版问题
+2555 修正 “产品动态”和“项目动态“的中的汉字
+2547 修正 “查看项目画面”的排版问题
+2546 修正 “BUG的自定义画面“的排版问题
+2545 修正 “创建项目文档库”画面的提示框翻译
+2544 修正一键安装包中“ 报表/自定义/项目 ”的空缺内容
+2543 调整报表模块界面的列显示,消除列名显示不全
+2542 调整添加用户界面,输入提示显示不全
+2541 调整一键安装包英文界面下,做系统备份成功时的英文翻译
+2524 将国际版筛选标签里面和我相关的菜单折叠到一个My标签里面
+2520 需求详情的用例按钮中间增加空格
+2519 调整国际版下面的每个表单保证控件组的对齐
+2518 调整后台首页国际版下面的内容和链接
+2509 测试视图主页,点击待测版本区块more,可以跳转到测试-测试单下
+2506 受限操作分组维护分组描述
+2493 需求、任务、bug、用例、日志列表勾选左下方全选,导出数据时选择选中记录,可以导出全选的数据
+2492 任务列表下方统计信息,显示子任务的统计信息
+2474 需求的批量编辑画面,布局有问题,未利用所有的屏幕宽度
+2355 自定义列表字段把能够展示的字段都梳理一遍
+2351 调整后台首页和关于页面的链接
+2297 计划或者项目创建需求的时候可以批量创建
+2527 bug状态已解决翻译有误
+2516 精简一级导航菜单的单词
+2513 创建英文版本的demo
+2487 编辑webhook页面,把类型字段显示出来
+2463 后台增加对 tmp和session目录读写权限检查和结果展示的功能
+2553 历史记录里面的旧记录翻译需要修改
+2552 优化国际版下面页脚统计信息的翻译
+2551 创建计划时日期选择翻译错了
+2550 计划关联需求的翻译弄反了
+2549 需求关闭页面closed reaseon换行
+2540 调整需求创建时推荐模板的翻译
+2539 各个统计报表的翻译需要调整
+2538 公司视图的统计需要调整翻译。
+2536 国际版去掉用不到的bug类型
+2535 调整国际版里面的网站链接
+2534 调整权限分组里面的翻译和排版
+2531 需求变更页面翻译需要调整
+2529 bug详情页面的create应当是Copy
+2528 bug创建表单keywords空间需要去掉空格
+2488 项目 任务视图,增加由我参与的任务按钮,展示由我参与的任务(多人任务)。
+
+修复的BUG
+1008 我的地盘首页的待办点击后跳转到组织-用户-待办页面
+1214 项目起止时间显示优化
+1219 从桌面客户端查看待办,页面显示不对。
+1221 任务报表统计中没有显示自定义的值
+1224 非多平台产品,在测试管理工作方式中,测试视图显示异常。
+1225 调用api反馈 nogdlib实际是有gd库的
+1228 手机浏览器访问开源版报错
+1232 任务、用例、bug,直接在列表下进行编辑操作,操作后底部统计栏不再固定显示
+1234 需求评审结果显示错误
+1240 提交需求会列出没有权限查看的产品名称
+1244 组织-日志中,选择本月或上月时,结束日期显示准确。
+1251 测试用例导出csv文件,报文格式数据不显示
+1255 zbox一键安装包,建议安装 aria_chk
+1256 搜索条件为日期介于时间段时,搜索后点击重置,搜索条件还在,需要重新点击搜索,条件才会重置。
+1261 批量分解任务无法分配相同名称的任务
+1264 没有产品的时候打开debug,进入以下页面会产生大量警告性的错误
+1268 需求细分功能如果没有填写任何数据被细分的需求也会关闭
+1273 测试视图,bug列表,单选框无法正常单选。
+1274 开源版集成svn/git查看显示403
+1275 文档维护分类,把模块和子模块改为分类。
+1280 后台-备份在直线还原操作的时候先检查备份文件的权限是否可以正常执行还原动作
+1283 列表页面,批操作菜单,会被遮盖。建议优化。
+1292 子任务指派给用户时,用户登陆后,不会在指派给我中显示
+1305 修复邮件发送公司信息没有及时更新的问题
+1309 开启测试管理工具(产品-项目流程),多分支产品,版本根据分支筛选功能异常。
+1314 产品-需求 无法批量关闭需求
+1324 产品-需求-编辑,删除所属计划后保存不生效
+1325 windows一键安装包9.0升9.6.3,admin登录提示没首页权限
+1326 子任务关闭或删除后,父任务预计工时还会统计
+1327 任务全选,导出数据,不能导出子任务.
+1328 项目概况预计工时,与燃尽图不符。
+1329 多人任务,按照指派给分组,显示优化。
+1330 项目任务,编辑任务,更换所属项目,顶部弹出窗口,点击取消;选中内容还是目标内容
+1332 保持登录功能可能失效
+1335 测试管理工具,产品--版本产品下载地址显示有问题
+1336 测试管理工具,项目--迭代,添加项目页面报错。
+1337 项目-任务按照模块和产品筛选数据有问题
+1338 后台-二次开发-数据库 --其他模块,显示英文字段
+1340 编辑bug解决日期会显示被修改
+1341 点击任务开始剩余工时选择0点击确定完成任务的时候没有把指派人更换成创建人
+1342 产品-需求列表在某个分支下无法显示所属计划
+1343 待评审状态用例,批量编辑后,状态会更新为空
+1344 测试bug,解决bug与激活bug功能,版本下拉,没有根据项目进行过滤。
+1345 多人任务都完成后没有指派给创建人
+1347 bug编辑日期可以输入汉字且被保存
+1348 子任务工时在所有项目页面,工时会统计为双倍
+1349 测试-用例列表,用例选择多个适用阶段,列表显示错行
+1350 项目任务列表,高级表格,延期任务,选中,鼠标放置上去,显示异常。
+
+2017-11-06 9.6.stable
完成的需求
1988 需求,任务,bug,用例,待办都可以选择看板模式。
2004 运维性的项目支持多人任务和子任务功能
diff --git a/doc/LICENSE b/doc/LICENSE
deleted file mode 100644
index ad1d7c53f5..0000000000
--- a/doc/LICENSE
+++ /dev/null
@@ -1,205 +0,0 @@
-Z PUBLIC LICENSE 1.2
-
-许可
-
-Z PUBLIC LICENSE 由青岛易软天创网络科技有限公司(www.cnezsoft.com)起草,简称ZPL协议。
-任何人均可使用该协议来发布开源软件,并可对下面协议正文中以下划线标注的空白部分做相应修改,
-除此之外的任何内容不得做任何修改。青岛易软天创网络科技有限公司拥有对该协议条款的最终解释权。
-
-前言:
-
-禅道项目管理软件(以下简称该软件)由 青岛易软天创网络科技有限公司(www.cnezsoft.com)开发(以下简称我)。我依法拥有该软件的所有版权。
-本着共享开放的角度,我以开放源代码的形式发布该软件。您可以在遵守该协议的前提下使用该软件。
-自您安装该软件开始,您和我之间的合同关系自动成立。除非您停止使用该软件或与我有签署额外合同,
-您须认真遵循该授权协议约定的每一条款。
-
-我的联系方式:
-联系人:徐先生
-电话: 4006-8899-23
-Email: co@cnezsoft.com
-QQ: 1492153927
-地址: 青岛开发区武夷山路167号千禧龙花园 9-1-101室
-
-约定:
-
-下述条款中所指该软件的标志包括如下方面:
-
- 该软件源代码及文档中关于该软件的版权提示、文字、图片和链接。
- 该软件运行时界面上呈现出来的有关该软件的文字、图片和链接。
-
-不包括如下方面:
-
- 该软件提供的演示数据中关于该软件的文字、图片和链接。
-
-一、免责
-
-该软件是以开放源代码的方式发行,您使用该软件无需任何费用,因此在使用该软件前,您须知晓:
-
- 1.1 我没有对该软件提供任何技术支持的义务,您可联系我购买商业的技术支持。
- 1.2 我对因使用该软件而产生直接或间接的任何问题不负任何责任。
- 1.3 开源不等于免费,开源不等于无版权,开源软件的发展需要您我共同的努力。
-
-二、自用该软件
-
-2.1 您个人或您就职的公司(组织)可自由使用该软件,我不对您或您就职公司(组织)的性质做任何限制。
-2.2 您可以在您个人或您就职公司(组织)任意数量的电脑上运行该软件,我不对电脑的数量做任何限制。
-2.3 您可以对该软件源代码进行修改以适应您个人或您所在公司(组织)使用的要求,您做的改动无需对外发布。
-2.4 您个人或您就职公司(组织)使用该软件时,必须保留该软件的所有标志,不得以任何方式隐藏或遮掩任一标志。
-
-三、为用户定制
-
-3.1 您可以使用该软件为您的用户部署各种形式的应用,我不对应用的性质做任何限制。
-3.2 您可以使用该软件为您的用户部署任意数量的应用,我不对应用的数量做任何限制。
-3.3 您可以对该软件源代码进行修改以适应您的用户的要求,您做的改动无需对外发布。
-3.4 您对该软件源代码所做的修改可以源代码或二进制的方式提供给您的用户。
-3.5 您使用该软件为您的任一用户部署的任一应用都必须保留该软件所有的标志。
-3.6 您使用该软件为您的任一用户部署的任一应用都不得以任何方式隐藏或遮掩该软件任一标志。
-
-四、提供在线服务
-
-4.1 您可以使用该软件搭建在线服务,为您的用户提供服务,我不对该服务及该服务用户的性质做任何限制。
-4.2 您可以使用该软件搭建在线服务,为您的用户提供服务,我不对该服务的用户数量做任何限制。
-4.3 您可以对该软件源代码进行修改以适应在线服务的要求,您做的改动无需对外发布。
-4.4 您使用该软件搭建在线服务时,必须以明确的方式告知您的用户该服务是基于该软件搭建的。
-4.5 您使用该软件搭建在线服务为您的任一用户部署的任一应用必须保留该软件所有的标志。
-4.6 您使用该软件搭建在线服务为您的任一用户部署的任一应用不得以任何方式隐藏或遮掩该软件任一标志。
-4.7 您使用该软件搭建在线服务时,不得为您的用户提供去除、隐藏或遮掩该软件任一标志的功能。
-
-五、无改动发布或集成该软件
-
-5.1 我欢迎并感谢您将该软件发布在您的个人网站、企业官网或者其他的第三方网站。
-5.2 我欢迎并感谢您将该软件集成在其他系统中一起发布,比如云服务镜像、操作系统发行版等。
-5.3 您在发布或者集成该软件的时候,不得对该软件源码做任何改动。
-5.4 您在发布或者集成该软件的时候,须保留该软件的所有标志。
-
-六、发布基于该软件的衍生作品
-
-6.1 我欢迎并感谢您为该软件开发衍生作品。
-6.2 您开发的衍生作品中涉及到对该软件源代码改动的地方,须遵循如下条款:
-
- 6.2.1 如修改了该软件的源代码,须依据本协议发布修改后的源代码。
- 6.2.2 如修改了该软件的源代码,须保留代码里面该软件原有的所有标志。
- 6.2.3 您可以在代码中追加您自己的标志。
- 6.2.4 您可以对您开发的衍生作品进行收费。
- 6.2.5 第三方的用户可在遵循6.2所有条款下可继续在您开发的衍生作品基础上进行修改并发布。
-
-6.3 您开发的衍生作品中独立于本软件开发的代码,可以源代码或二进制的方式进行发布,可免费或收费发布。
-6.4 您开发的衍生作品不得以任何方式去除、隐藏或遮掩该软件的任一标志。
-
-七、发布基于该软件API的应用
-
-7.1 我欢迎并感谢您为该软件开发基于API的各种应用,比如客户端软件等。
-7.2 您基于该软件API机制开发的应用,可以源代码或者二进制的方式进行发布,我对此没有任何限制。
-7.3 您基于该软件API机制开发的应用,授权协议可以自行约定,我对此没有任何限制。
-7.4 您基于该软件API机制开发的应用,可以免费或者收费发布,我对此没有任何限制。
-
-八、授权例外
-
-如果上述条款无法满足您使用该软件的要求,可联系我签署额外的合同以获得更灵活的授权许可。
-
-九、合同约束
-
-9.1 如果您违反了该协议的任一条款,该授权协议将自动终止,我保留通过法律手段追究责任的权利。
-
-Z PUBLIC LICENSE 1.2
-
-Authorization
-
-Z PUBLIC LICENSE, also known as ZPL Agreement, is drafted by QingDao Nature Easy Soft Network Technology Co,LTD. (,www.cnezsoft.com).
-Anyone can use the agreement to publish open source software, and modify the blank underlined part of the following text of the agreement accordingly.
-No other text of the agreement shall be changed. QingDao Nature Easy Soft Network Technology Co,LTD has the final authority to interpret the terms of the agreement.
-
-Preface
-
-ZenTaoPMS (Hereinafter referred to as "the software") developed by Nature EasySoft Network Tecnology Co.ltd, QingDao, China (www.cnezsoft.com) (hereinafter referred to I). I'm entitled to all copyright of the software.
-The software is released as open source software. You are authorized to use the software as long as you are in compliance with this agreement.
-By installation of the software, you agree that a contractual relationship between you and me is automatically established.
-You are obliged to fully comply with all the terms of this agreement unless you choose to stop using the software or you have signed additional contracts with me.
-
-My Contact:
-Contact: Mr. Xu
-Phone: 4006-8899-23
-Email: co@cnezsoft.com
-QQ: 1492153927
-Address: 9-1-101, 167 Wuyishan Lu, Kai Fa Qu, Qingdao
-
-We agree:
-
-Indications of the software include:
-
- Notes, texts, pictures and links showing copyright attribution of the software in the source code and related documentation.
- and texts, picture and links on the interface of the software when running.
-
-Excluding
-
- texts, picture and links on the interface of the demo versions of the software.
-
-1. Disclaimer
-
-The software is an open-source software, so you are authorized to use the software without paying a fee. Before you start to use it, please note:
-
- 1.1 I do not have any obligation to provide technical support for the software. You can contact me to purchase technical support service.
- 1.2 I'm not responsible for any liability caused by your using the software directly or indirectly.
- 1.3 Open source software does not mean it's free of charge, neither does it mean the software does not enjoy copyright.
-
-2. For personal use
-
-2.1 You or your company/organization are authorized to use the software for your internal use for both commercial and non-commercial purposes..
-2.2 You or your company/organization are authorized to run the software on any number of computers.
-2.3 You or your company/organization are authorized to modify the source code of the software to meet your requirements. You do not need to release the modified codes.
-2.4 You or your company/organization must keep all the indications of the software when using it. None of the indications can be removed, hidden or obscured in any way.
-
-3. For customized software
-
-3.1 You are authorized to use the software to deploy various forms of application for your users in any way you like.
-3.2 You are authorized to use the software to deploy any number of applications for your users.
-3.3 You are authorized to modify the source code to meet your user's requirements without releasing the modified codes.
-3.4 You are authorized to provide the modified codes to your users in either source code form or binary.
-3.5 You must keep all the indications of the software when providing applications to your users.
-3.6 None of the indications of the software may be removed, hidden or obscured in any way when you provide applications to your users.
-
-4. Online service
-
-4.1 You are authorized to use the software to build your online service for your users in any way you like.
-4.2 You are authorized to use the software to build your online service for any number of your users.
-4.3 You are authorized to modify the source codes of the software to meet your user's requirements on online service without releasing the modified codes.
-4.4 You must notify your users clearly that your service is based on the software when you use it to build your online service.
-4.5 You must keep all the indications of the software when providing online service to your users.
-4.6 You must keep all the indications of the software in any application you make for your users. None of the indications can be hidden or obscured in any way.
-4.7 You are forbidden from assisting your users by providing tools for your users to remove, hide or obscure any indication of the software when you use the software to build your online service.
-
-5. Publish or integrate the software without modification
-
-5.1 You are authorized to publish the software on your personal sites, corporate official website or other third-party sites.
-5.2 You are authorized to integrate the software with other systems, such as cloud virtual machine images, operating system images and so on.
-5.3 Do not modify the source code of the software when you publish or integrate it.
-5.4 All indications of the software must be kept the same when you publish or integrate the software.
-
-6. Publish derived work based on the software
-
-6.1 You are authorized to develop derived work based on the software.
-6.2 The modified codes of the software in your derived work must follow the following terms:
-
- 6.2.1 The source codes must be released if you make any modification to the software.
- 6.2.2 All indications of the software must be kept the same.
- 6.2.3 You are entitled to add your indications to the modified codes.
- 6.2.4 You are entitled to charge fees for the derived work you developed based on the software.
- 6.2.5 You agree to authorize third party users to modify and release the derived work in compliance with 6.2.
-
-6.3 If the codes of the work are independently developed by yourself, You are authorized to release the work in either source code form or binary. You are entitled to charge your users or make it free.
-6.4 None of the indications of the software can be removed, hidden or obscured in any way in the derived work you developed.
-
-7. Publish applications based on API of the software
-
-7.1 You are authorized to develop your applications based on the API of the software, for example, client software.
-7.2 You are authorized to publish applications you developed based on the API in either source code form or binary.
-7.3 You are authorized to use your own license to release applications you developed based on the API.
-7.4 You are entitled to release applications you developed based on the API either free or with a charge.
-
-8. Exceptions
-
-If the terms above do not meet your requirements when using the software, please contact me for a more flexible license.
-
-9. Termination
-
-9.1 Violation of any of the terms of the agreement will result in immediate termination of this license. I reserve all rights to take legal actions in case of dispute.
diff --git a/doc/LICENSE.CN b/doc/LICENSE.CN
new file mode 100644
index 0000000000..8baab2b794
--- /dev/null
+++ b/doc/LICENSE.CN
@@ -0,0 +1,102 @@
+Z PUBLIC LICENSE 1.2
+
+许可
+
+Z PUBLIC LICENSE 由青岛易软天创网络科技有限公司(www.cnezsoft.com)起草,简称ZPL协议。
+任何人均可使用该协议来发布开源软件,并可对下面协议正文中以下划线标注的空白部分做相应修改,
+除此之外的任何内容不得做任何修改。青岛易软天创网络科技有限公司拥有对该协议条款的最终解释权。
+
+前言:
+
+禅道项目管理软件(以下简称该软件)由 青岛易软天创网络科技有限公司(www.cnezsoft.com)开发(以下简称我)。我依法拥有该软件的所有版权。
+本着共享开放的角度,我以开放源代码的形式发布该软件。您可以在遵守该协议的前提下使用该软件。
+自您安装该软件开始,您和我之间的合同关系自动成立。除非您停止使用该软件或与我有签署额外合同,
+您须认真遵循该授权协议约定的每一条款。
+
+我的联系方式:
+联系人:徐先生
+电话: 4006-8899-23
+Email: co@cnezsoft.com
+QQ: 1492153927
+地址: 青岛开发区武夷山路167号千禧龙花园 9-1-101室
+
+约定:
+
+下述条款中所指该软件的标志包括如下方面:
+
+ 该软件源代码及文档中关于该软件的版权提示、文字、图片和链接。
+ 该软件运行时界面上呈现出来的有关该软件的文字、图片和链接。
+
+不包括如下方面:
+
+ 该软件提供的演示数据中关于该软件的文字、图片和链接。
+
+一、免责
+
+该软件是以开放源代码的方式发行,您使用该软件无需任何费用,因此在使用该软件前,您须知晓:
+
+1.1 我没有对该软件提供任何技术支持的义务,您可联系我购买商业的技术支持。
+1.2 我对因使用该软件而产生直接或间接的任何问题不负任何责任。
+1.3 开源不等于免费,开源不等于无版权,开源软件的发展需要您我共同的努力。
+
+二、自用该软件
+
+2.1 您个人或您就职的公司(组织)可自由使用该软件,我不对您或您就职公司(组织)的性质做任何限制。
+2.2 您可以在您个人或您就职公司(组织)任意数量的电脑上运行该软件,我不对电脑的数量做任何限制。
+2.3 您可以对该软件源代码进行修改以适应您个人或您所在公司(组织)使用的要求,您做的改动无需对外发布。
+2.4 您个人或您就职公司(组织)使用该软件时,必须保留该软件的所有标志,不得以任何方式隐藏或遮掩任一标志。
+
+三、为用户定制
+
+3.1 您可以使用该软件为您的用户部署各种形式的应用,我不对应用的性质做任何限制。
+3.2 您可以使用该软件为您的用户部署任意数量的应用,我不对应用的数量做任何限制。
+3.3 您可以对该软件源代码进行修改以适应您的用户的要求,您做的改动无需对外发布。
+3.4 您对该软件源代码所做的修改可以源代码或二进制的方式提供给您的用户。
+3.5 您使用该软件为您的任一用户部署的任一应用都必须保留该软件所有的标志。
+3.6 您使用该软件为您的任一用户部署的任一应用都不得以任何方式隐藏或遮掩该软件任一标志。
+
+四、提供在线服务
+
+4.1 您可以使用该软件搭建在线服务,为您的用户提供服务,我不对该服务及该服务用户的性质做任何限制。
+4.2 您可以使用该软件搭建在线服务,为您的用户提供服务,我不对该服务的用户数量做任何限制。
+4.3 您可以对该软件源代码进行修改以适应在线服务的要求,您做的改动无需对外发布。
+4.4 您使用该软件搭建在线服务时,必须以明确的方式告知您的用户该服务是基于该软件搭建的。
+4.5 您使用该软件搭建在线服务为您的任一用户部署的任一应用必须保留该软件所有的标志。
+4.6 您使用该软件搭建在线服务为您的任一用户部署的任一应用不得以任何方式隐藏或遮掩该软件任一标志。
+4.7 您使用该软件搭建在线服务时,不得为您的用户提供去除、隐藏或遮掩该软件任一标志的功能。
+
+五、无改动发布或集成该软件
+
+5.1 我欢迎并感谢您将该软件发布在您的个人网站、企业官网或者其他的第三方网站。
+5.2 我欢迎并感谢您将该软件集成在其他系统中一起发布,比如云服务镜像、操作系统发行版等。
+5.3 您在发布或者集成该软件的时候,不得对该软件源码做任何改动。
+5.4 您在发布或者集成该软件的时候,须保留该软件的所有标志。
+
+六、发布基于该软件的衍生作品
+
+6.1 我欢迎并感谢您为该软件开发衍生作品。
+6.2 您开发的衍生作品中涉及到对该软件源代码改动的地方,须遵循如下条款:
+
+ 6.2.1 如修改了该软件的源代码,须依据本协议发布修改后的源代码。
+ 6.2.2 如修改了该软件的源代码,须保留代码里面该软件原有的所有标志。
+ 6.2.3 您可以在代码中追加您自己的标志。
+ 6.2.4 您可以对您开发的衍生作品进行收费。
+ 6.2.5 第三方的用户可在遵循6.2所有条款下可继续在您开发的衍生作品基础上进行修改并发布。
+
+6.3 您开发的衍生作品中独立于本软件开发的代码,可以源代码或二进制的方式进行发布,可免费或收费发布。
+6.4 您开发的衍生作品不得以任何方式去除、隐藏或遮掩该软件的任一标志。
+
+七、发布基于该软件API的应用
+
+7.1 我欢迎并感谢您为该软件开发基于API的各种应用,比如客户端软件等。
+7.2 您基于该软件API机制开发的应用,可以源代码或者二进制的方式进行发布,我对此没有任何限制。
+7.3 您基于该软件API机制开发的应用,授权协议可以自行约定,我对此没有任何限制。
+7.4 您基于该软件API机制开发的应用,可以免费或者收费发布,我对此没有任何限制。
+
+八、授权例外
+
+如果上述条款无法满足您使用该软件的要求,可联系我签署额外的合同以获得更灵活的授权许可。
+
+九、合同约束
+
+9.1 如果您违反了该协议的任一条款,该授权协议将自动终止,我保留通过法律手段追究责任的权利。
diff --git a/doc/LICENSE.EN b/doc/LICENSE.EN
new file mode 100644
index 0000000000..16cc3a8dce
--- /dev/null
+++ b/doc/LICENSE.EN
@@ -0,0 +1,99 @@
+Z PUBLIC LICENSE 1.2
+
+Authorization
+
+Z PUBLIC LICENSE, also known as ZPL Agreement, is drafted by QingDao Nature Easy Soft Network Technology Co,LTD. (,www.cnezsoft.com).
+Anyone can use the agreement to publish open source software, and modify the blank underlined part of the following text of the agreement accordingly.
+No other text of the agreement shall be changed. QingDao Nature Easy Soft Network Technology Co,LTD has the final authority to interpret the terms of the agreement.
+
+Preface
+
+ZenTaoPMS (Hereinafter referred to as "the software") developed by Nature EasySoft Network Tecnology Co.ltd, QingDao, China (www.cnezsoft.com) (hereinafter referred to I). I'm entitled to all copyright of the software.
+The software is released as open source software. You are authorized to use the software as long as you are in compliance with this agreement.
+By installation of the software, you agree that a contractual relationship between you and me is automatically established.
+You are obliged to fully comply with all the terms of this agreement unless you choose to stop using the software or you have signed additional contracts with me.
+
+My Contact:
+Email: co@easysoft.ltd
+Site: http://www.zentao.pm
+
+We agree:
+
+Indications of the software include:
+
+ Notes, texts, pictures and links showing copyright attribution of the software in the source code and related documentation.
+ and texts, picture and links on the interface of the software when running.
+
+Excluding
+
+ texts, picture and links on the interface of the demo versions of the software.
+
+1. Disclaimer
+
+The software is an open-source software, so you are authorized to use the software without paying a fee. Before you start to use it, please note:
+
+1.1 I do not have any obligation to provide technical support for the software. You can contact me to purchase technical support service.
+1.2 I'm not responsible for any liability caused by your using the software directly or indirectly.
+1.3 Open source software does not mean it's free of charge, neither does it mean the software does not enjoy copyright.
+
+2. For personal use
+
+2.1 You or your company/organization are authorized to use the software for your internal use for both commercial and non-commercial purposes..
+2.2 You or your company/organization are authorized to run the software on any number of computers.
+2.3 You or your company/organization are authorized to modify the source code of the software to meet your requirements. You do not need to release the modified codes.
+2.4 You or your company/organization must keep all the indications of the software when using it. None of the indications can be removed, hidden or obscured in any way.
+
+3. For customized software
+
+3.1 You are authorized to use the software to deploy various forms of application for your users in any way you like.
+3.2 You are authorized to use the software to deploy any number of applications for your users.
+3.3 You are authorized to modify the source code to meet your user's requirements without releasing the modified codes.
+3.4 You are authorized to provide the modified codes to your users in either source code form or binary.
+3.5 You must keep all the indications of the software when providing applications to your users.
+3.6 None of the indications of the software may be removed, hidden or obscured in any way when you provide applications to your users.
+
+4. Online service
+
+4.1 You are authorized to use the software to build your online service for your users in any way you like.
+4.2 You are authorized to use the software to build your online service for any number of your users.
+4.3 You are authorized to modify the source codes of the software to meet your user's requirements on online service without releasing the modified codes.
+4.4 You must notify your users clearly that your service is based on the software when you use it to build your online service.
+4.5 You must keep all the indications of the software when providing online service to your users.
+4.6 You must keep all the indications of the software in any application you make for your users. None of the indications can be hidden or obscured in any way.
+4.7 You are forbidden from assisting your users by providing tools for your users to remove, hide or obscure any indication of the software when you use the software to build your online service.
+
+5. Publish or integrate the software without modification
+
+5.1 You are authorized to publish the software on your personal sites, corporate official website or other third-party sites.
+5.2 You are authorized to integrate the software with other systems, such as cloud virtual machine images, operating system images and so on.
+5.3 Do not modify the source code of the software when you publish or integrate it.
+5.4 All indications of the software must be kept the same when you publish or integrate the software.
+
+6. Publish derived work based on the software
+
+6.1 You are authorized to develop derived work based on the software.
+6.2 The modified codes of the software in your derived work must follow the following terms:
+
+ 6.2.1 The source codes must be released if you make any modification to the software.
+ 6.2.2 All indications of the software must be kept the same.
+ 6.2.3 You are entitled to add your indications to the modified codes.
+ 6.2.4 You are entitled to charge fees for the derived work you developed based on the software.
+ 6.2.5 You agree to authorize third party users to modify and release the derived work in compliance with 6.2.
+
+6.3 If the codes of the work are independently developed by yourself, You are authorized to release the work in either source code form or binary. You are entitled to charge your users or make it free.
+6.4 None of the indications of the software can be removed, hidden or obscured in any way in the derived work you developed.
+
+7. Publish applications based on API of the software
+
+7.1 You are authorized to develop your applications based on the API of the software, for example, client software.
+7.2 You are authorized to publish applications you developed based on the API in either source code form or binary.
+7.3 You are authorized to use your own license to release applications you developed based on the API.
+7.4 You are entitled to release applications you developed based on the API either free or with a charge.
+
+8. Exceptions
+
+If the terms above do not meet your requirements when using the software, please contact me for a more flexible license.
+
+9. Termination
+
+9.1 Violation of any of the terms of the agreement will result in immediate termination of this license. I reserve all rights to take legal actions in case of dispute.
diff --git a/framework/base/router.class.php b/framework/base/router.class.php
index d700da5fc4..fddd0fc42b 100644
--- a/framework/base/router.class.php
+++ b/framework/base/router.class.php
@@ -1485,8 +1485,8 @@ class baseRouter
if(!method_exists($tmpModelClass, $method)) continue;
$methodRelfection = new reflectionMethod($tmpModelClass, $method);
$definedFile = $methodRelfection->getFileName();
- $startLine = $methodRelfection->getStartLine() . ' ';
- $endLine = $methodRelfection->getEndLine() . ' ';
+ $startLine = $methodRelfection->getStartLine();
+ $endLine = $methodRelfection->getEndLine();
/* 将Hook脚本和老的代码合并在一起,并替换原来的定义。Merge hook codes with old codes and replace back. */
$oldCodes = $definedFile == $tmpModelFile ? $mergedModelCodes : $mainModelCodes;
@@ -2184,6 +2184,7 @@ class baseRouter
{
/* 设置错误信息(Set the error info) */
$message = htmlspecialchars($message);
+ if(preg_match('/[^\x00-\x80]/', $message)) $message = helper::convertEncoding($message, 'gbk');
$log = "ERROR: $message in $file on line $line";
if(isset($_SERVER['SCRIPT_URI'])) $log .= ", request: $_SERVER[SCRIPT_URI]";;
$trace = debug_backtrace();
@@ -2236,6 +2237,7 @@ class baseRouter
* 设置错误信息。
* Set the error info.
**/
+ if(preg_match('/[^\x00-\x80]/', $message)) $message = helper::convertEncoding($message, 'gbk');
$errorLog = "\n" . date('H:i:s') . " $message in $file on line $line ";
$errorLog .= "when visiting " . htmlspecialchars($this->getURI()) . "\n";
diff --git a/framework/helper.class.php b/framework/helper.class.php
index 39a7629714..e54e60d459 100644
--- a/framework/helper.class.php
+++ b/framework/helper.class.php
@@ -5,7 +5,7 @@
*
* The author disclaims copyright to this source code. In place of
* a legal notice, here is a blessing:
- *
+ *
* May you do good and not evil.
* May you find forgiveness for yourself and forgive others.
* May you share freely, never taking more than you give.
@@ -43,7 +43,7 @@ class helper extends baseHelper
{
if(isset($_GET[$config->viewVar]))
{
- $viewType = $_GET[$config->viewVar];
+ $viewType = $_GET[$config->viewVar];
}
else
{
@@ -59,9 +59,9 @@ class helper extends baseHelper
/**
* Encode json for $.parseJSON
- *
- * @param array $data
- * @param int $options
+ *
+ * @param array $data
+ * @param int $options
* @static
* @access public
* @return string
@@ -78,10 +78,10 @@ class helper extends baseHelper
/**
* Convert encoding.
- *
- * @param string $string
- * @param string $fromEncoding
- * @param string $toEncoding
+ *
+ * @param string $string
+ * @param string $fromEncoding
+ * @param string $toEncoding
* @static
* @access public
* @return string
@@ -111,12 +111,33 @@ class helper extends baseHelper
return $string;
}
+
+ /**
+ * Calculate two working days.
+ *
+ * @param string $begin
+ * @param string $end
+ *
+ * @return bool|float
+ */
+ static public function workDays($begin, $end)
+ {
+ $begin = strtotime($begin);
+ $end = strtotime($end);
+ if($end < $begin) return false;
+
+ $double = floor(($end - $begin) / (7 * 24 * 3600));
+ $begin = date('w', $begin);
+ $end = date('w', $end);
+ $end = $begin > $end ? $end + 5 : $end;
+ return $double * 5 + $end - $begin;
+ }
}
/**
* 检查是否是onlybody模式。
* Check exist onlybody param.
- *
+ *
* @access public
* @return void
*/
@@ -140,4 +161,4 @@ function formatTime($time, $format = '')
if(trim($time) == '') return ;
if($format) return date($format, strtotime($time));
return trim($time);
-}
\ No newline at end of file
+}
diff --git a/lib/base/dao/dao.class.php b/lib/base/dao/dao.class.php
index de4318b9f7..cffee28715 100644
--- a/lib/base/dao/dao.class.php
+++ b/lib/base/dao/dao.class.php
@@ -1356,6 +1356,10 @@ class baseDAO
{
$field['rule'] = 'date';
}
+ elseif($type == 'datetime')
+ {
+ $field['rule'] = 'datetime';
+ }
else
{
$field['rule'] = 'skip';
@@ -1993,11 +1997,16 @@ class baseSQL
$pos = stripos($order, 'limit');
$orders = $pos ? substr($order, 0, $pos) : $order;
$limit = $pos ? substr($order, $pos) : '';
- if($limit and !preg_match('/^[0-9]+ *(, *[0-9]+)?$/', $limit)) $limit = '';
+ if(!empty($limit))
+ {
+ $trimedLimit = trim(str_replace('limit', '', $limit));
+ if(!preg_match('/^[0-9]+ *(, *[0-9]+)?$/', $trimedLimit)) die("Limit is bad query, The limit is " . htmlspecialchars($limit));
+ }
+
$orders = trim($orders);
if(empty($orders)) return $this;
- if(!preg_match('/^(\w+\.)?(`\w+`|\w+)( +(desc|asc))?( *(, *(\w+\.)?(`\w+`|\w+)( +(desc|asc))?)?)*$/i', $orders)) die("Order is bad request, The order is $orders");
+ if(!preg_match('/^(\w+\.)?(`\w+`|\w+)( +(desc|asc))?( *(, *(\w+\.)?(`\w+`|\w+)( +(desc|asc))?)?)*$/i', $orders)) die("Order is bad request, The order is " . htmlspecialchars($orders));
$orders = explode(',', $orders);
foreach($orders as $i => $order)
diff --git a/lib/base/filter/filter.class.php b/lib/base/filter/filter.class.php
index a4491fc604..ceaacadb8b 100644
--- a/lib/base/filter/filter.class.php
+++ b/lib/base/filter/filter.class.php
@@ -262,12 +262,31 @@ class baseValidater
*/
public static function checkDate($date)
{
+ if(empty($date)) return true;
if($date == '0000-00-00') return true;
$stamp = strtotime($date);
if(!is_numeric($stamp)) return false;
return checkdate(date('m', $stamp), date('d', $stamp), date('Y', $stamp));
}
+ /**
+ * Check datetime.
+ *
+ * @param string $datetime
+ * @static
+ * @access public
+ * @return bool
+ */
+ public static function checkDatetime($datetime)
+ {
+ if(empty($datetime)) return true;
+ if($datetime == '0000-00-00') return true;
+ if($datetime == '0000-00-00 00:00:00') return true;
+ $stamp = strtotime($datetime);
+ if(!is_numeric($stamp)) return false;
+ return checkdate(date('m', $stamp), date('d', $stamp), date('Y', $stamp));
+ }
+
/**
* 检查正则表达式。
* REG checking.
diff --git a/lib/dao/dao.class.php b/lib/dao/dao.class.php
index ea12a7ddb6..441109e7b3 100644
--- a/lib/dao/dao.class.php
+++ b/lib/dao/dao.class.php
@@ -22,7 +22,7 @@ class dao extends baseDAO
{
public function exec($sql = '')
{
- if(isset($_SESSION['tutorialMode']) and $_SESSION['tutorialMode']) die(js::alert($this->lang->error->tutorialData));
+ if(isset($_SESSION['tutorialMode']) and $_SESSION['tutorialMode']) die();
return parent::exec($sql);
}
diff --git a/lib/front/front.class.php b/lib/front/front.class.php
index 8c6a881a13..99dedc8632 100644
--- a/lib/front/front.class.php
+++ b/lib/front/front.class.php
@@ -124,6 +124,24 @@ class html extends baseHTML
/* End. */
return $string .= "\n";
}
+
+ /**
+ * Create input tag that type is number.
+ *
+ * @param string $name
+ * @param string $value
+ * @param string $attrib
+ * @static
+ * @access public
+ * @return string
+ */
+ static public function number($name, $value = '', $attrib = '')
+ {
+ $id = "id='$name'";
+ if(strpos($attrib, 'id=') !== false) $id = '';
+ $value = str_replace("'", ''', $value);
+ return "\n";
+ }
}
/**
diff --git a/lib/pager/pager.class.php b/lib/pager/pager.class.php
index b315d1e949..6431fd349f 100644
--- a/lib/pager/pager.class.php
+++ b/lib/pager/pager.class.php
@@ -20,4 +20,30 @@ helper::import(dirname(dirname(__FILE__)) . '/base/pager/pager.class.php');
*/
class pager extends basePager
{
+ /**
+ * Show pager.
+ *
+ * @param string $align
+ * @param string $type
+ * @access public
+ * @return void
+ */
+ public function show($align = 'right', $type = 'full')
+ {
+ if($type == 'pagerjs')
+ {
+ $this->setParams();
+ $params = $this->params;
+ foreach($params as $key => $value)
+ {
+ if(strtolower($key) == 'recperpage') $params[$key] = '{recPerPage}';
+ if(strtolower($key) == 'pageid') $params[$key] = '{page}';
+ }
+ echo "";
+ }
+ else
+ {
+ parent::show($align, $type);
+ }
+ }
}
diff --git a/module/action/control.php b/module/action/control.php
index 5916f33db9..be3f932140 100755
--- a/module/action/control.php
+++ b/module/action/control.php
@@ -115,9 +115,6 @@ class action extends control
public function comment($objectType, $objectID)
{
$actionID = $this->action->create($objectType, $objectID, 'Commented', $this->post->comment);
-
- $moduleName = $objectType == 'case' ? 'testcase' : $objectType;
- $this->loadModel($moduleName)->sendmail($objectID, $actionID);
die(js::reload('parent'));
}
diff --git a/module/action/lang/en.php b/module/action/lang/en.php
index 34e6c6c784..6a988dc0a6 100755
--- a/module/action/lang/en.php
+++ b/module/action/lang/en.php
@@ -12,10 +12,10 @@
$lang->action->common = 'Log';
$lang->action->product = $lang->productCommon;
$lang->action->project = $lang->projectCommon;
-$lang->action->objectType = 'Object';
+$lang->action->objectType = 'Object Type';
$lang->action->objectID = 'ID';
-$lang->action->objectName = 'Name';
-$lang->action->actor = 'Done by';
+$lang->action->objectName = 'Object Name';
+$lang->action->actor = 'Operator';
$lang->action->action = 'Action';
$lang->action->actionID = 'Action ID';
$lang->action->date = 'Date';
@@ -27,7 +27,7 @@ $lang->action->hideAll = 'Hide All';
$lang->action->editComment = 'Edit';
$lang->action->comment = 'Comment';
-$lang->action->trashTips = 'Note: Delete in ZenTao is logic.';
+$lang->action->trashTips = 'Note: All Deletion in ZenTao are logical.';
$lang->action->textDiff = 'Text Format';
$lang->action->original = 'Original Format';
$lang->action->confirmHideAll = 'Do you want to hide all the records?';
@@ -44,11 +44,11 @@ $lang->action->history->diff = 'Diff';
$lang->action->dynamic = new stdclass();
$lang->action->dynamic->today = 'Today';
$lang->action->dynamic->yesterday = 'Yesterday';
-$lang->action->dynamic->twoDaysAgo = 'Two Days Ago';
-$lang->action->dynamic->thisWeek = 'This Week';
-$lang->action->dynamic->lastWeek = 'Last Week';
-$lang->action->dynamic->thisMonth = 'This Month';
-$lang->action->dynamic->lastMonth = 'Last Month';
+$lang->action->dynamic->twoDaysAgo = 'TwoDaysAgo';
+$lang->action->dynamic->thisWeek = 'ThisWeek';
+$lang->action->dynamic->lastWeek = 'LastWeek';
+$lang->action->dynamic->thisMonth = 'ThisMonth';
+$lang->action->dynamic->lastMonth = 'LastMonth';
$lang->action->dynamic->all = 'All';
$lang->action->dynamic->hidden = 'Hidden';
$lang->action->dynamic->search = 'Search';
@@ -68,7 +68,7 @@ $lang->action->objectTypes['testtask'] = 'Test Build';
$lang->action->objectTypes['user'] = 'User';
$lang->action->objectTypes['doc'] = 'Doc';
$lang->action->objectTypes['doclib'] = 'Doc Lib';
-$lang->action->objectTypes['todo'] = 'To-Dos';
+$lang->action->objectTypes['todo'] = 'Todo';
$lang->action->objectTypes['branch'] = 'Branch';
$lang->action->objectTypes['module'] = 'Module';
$lang->action->objectTypes['testsuite'] = 'Suite';
@@ -143,7 +143,7 @@ $lang->action->label->blocked = 'Blocked';
$lang->action->label->resolved = 'Resolved';
$lang->action->label->reviewed = 'Reviewed';
$lang->action->label->moved = 'Moved';
-$lang->action->label->confirmed = 'Confirm a Story, ';
+$lang->action->label->confirmed = 'Confirm a Story';
$lang->action->label->bugconfirmed = 'Confirmed';
$lang->action->label->tostory = 'Convert to Story';
$lang->action->label->frombug = 'Converted from Bug';
@@ -197,7 +197,7 @@ $lang->action->label->case = 'Case|testcase|view|caseID=%s';
$lang->action->label->testtask = 'Test Task|testtask|view|caseID=%s';
$lang->action->label->testsuite = 'Test Suite|testsuite|view|suiteID=%s';
$lang->action->label->caselib = 'Case Library|testsuite|libview|libID=%s';
-$lang->action->label->todo = 'To-Do|todo|view|todoID=%s';
+$lang->action->label->todo = 'Todo|todo|view|todoID=%s';
$lang->action->label->doclib = 'Doc Lib|doc|browse|libID=%s';
$lang->action->label->doc = 'Doc|doc|view|docID=%s';
$lang->action->label->user = 'User|user|view|account=%s';
@@ -220,7 +220,7 @@ $lang->action->search->objectTypeList['testtask'] = 'Test Task';
$lang->action->search->objectTypeList['user'] = 'User';
$lang->action->search->objectTypeList['doc'] = 'Doc';
$lang->action->search->objectTypeList['doclib'] = 'Doc Lib';
-$lang->action->search->objectTypeList['todo'] = 'To-Dos';
+$lang->action->search->objectTypeList['todo'] = 'Todo';
$lang->action->search->objectTypeList['build'] = 'Build';
$lang->action->search->objectTypeList['release'] = 'Release';
$lang->action->search->objectTypeList['productplan'] = 'Plan';
diff --git a/module/action/lang/zh-cn.php b/module/action/lang/zh-cn.php
index 7021b27d0d..0982cb1fee 100755
--- a/module/action/lang/zh-cn.php
+++ b/module/action/lang/zh-cn.php
@@ -191,13 +191,13 @@ $lang->action->label->release = '发布|release|view|productID=%s';
$lang->action->label->story = '需求|story|view|storyID=%s';
$lang->action->label->project = "{$lang->projectCommon}|project|view|projectID=%s";
$lang->action->label->task = '任务|task|view|taskID=%s';
-$lang->action->label->build = 'Build|build|view|buildID=%s';
+$lang->action->label->build = '版本|build|view|buildID=%s';
$lang->action->label->bug = 'Bug|bug|view|bugID=%s';
$lang->action->label->case = '用例|testcase|view|caseID=%s';
$lang->action->label->testtask = '测试单|testtask|view|caseID=%s';
$lang->action->label->testsuite = '测试套件|testsuite|view|suiteID=%s';
$lang->action->label->caselib = '测试库|testsuite|libview|libID=%s';
-$lang->action->label->todo = 'todo|todo|view|todoID=%s';
+$lang->action->label->todo = '待办|todo|view|todoID=%s';
$lang->action->label->doclib = '文档库|doc|browse|libID=%s';
$lang->action->label->doc = '文档|doc|view|docID=%s';
$lang->action->label->user = '用户|user|view|account=%s';
diff --git a/module/action/lang/zh-tw.php b/module/action/lang/zh-tw.php
index 673315df31..638d10c6ee 100755
--- a/module/action/lang/zh-tw.php
+++ b/module/action/lang/zh-tw.php
@@ -25,6 +25,7 @@ $lang->action->undelete = '還原';
$lang->action->hideOne = '隱藏';
$lang->action->hideAll = '全部隱藏';
$lang->action->editComment = '修改備註';
+$lang->action->comment = '備註';
$lang->action->trashTips = '提示:為了保證系統的完整性,禪道系統的刪除都是標記刪除。';
$lang->action->textDiff = '文本格式';
@@ -190,13 +191,13 @@ $lang->action->label->release = '發佈|release|view|productID=%s';
$lang->action->label->story = '需求|story|view|storyID=%s';
$lang->action->label->project = "{$lang->projectCommon}|project|view|projectID=%s";
$lang->action->label->task = '任務|task|view|taskID=%s';
-$lang->action->label->build = 'Build|build|view|buildID=%s';
+$lang->action->label->build = '版本|build|view|buildID=%s';
$lang->action->label->bug = 'Bug|bug|view|bugID=%s';
$lang->action->label->case = '用例|testcase|view|caseID=%s';
$lang->action->label->testtask = '測試單|testtask|view|caseID=%s';
$lang->action->label->testsuite = '測試套件|testsuite|view|suiteID=%s';
$lang->action->label->caselib = '測試庫|testsuite|libview|libID=%s';
-$lang->action->label->todo = 'todo|todo|view|todoID=%s';
+$lang->action->label->todo = '待辦|todo|view|todoID=%s';
$lang->action->label->doclib = '文檔庫|doc|browse|libID=%s';
$lang->action->label->doc = '文檔|doc|view|docID=%s';
$lang->action->label->user = '用戶|user|view|account=%s';
diff --git a/module/action/model.php b/module/action/model.php
index 1907cb753d..4aff2f30df 100755
--- a/module/action/model.php
+++ b/module/action/model.php
@@ -61,7 +61,7 @@ class actionModel extends model
$this->file->updateObjectID($this->post->uid, $objectID, $objectType);
- $this->loadModel('webhook')->send($objectType, $objectID, $actionType, $actionID);
+ $this->loadModel('message')->send($objectType, $objectID, $actionType, $actionID);
return $actionID;
}
@@ -325,6 +325,22 @@ class actionModel extends model
}
}
}
+ elseif($actionName == 'finished' and $objectType == 'todo')
+ {
+ $action->appendLink = '';
+ if(strpos($action->extra, ':')!== false)
+ {
+ list($extra, $id) = explode(':', $action->extra);
+ $action->extra = strtolower($extra);
+ if($id)
+ {
+ $table = $this->config->objectTables[$action->extra];
+ $field = $this->config->action->objectNameFields[$action->extra];
+ $name = $this->dao->select($field)->from($table)->where('id')->eq($id)->fetch($field);
+ if($name) $action->appendLink = html::a(helper::createLink($action->extra, 'view', "id=$id"), "#$id " . $name);
+ }
+ }
+ }
$action->history = isset($histories[$actionID]) ? $histories[$actionID] : array();
$actionName = strtolower($action->action);
@@ -691,7 +707,7 @@ class actionModel extends model
$objectIds = array_unique($objectIds);
$table = $this->config->objectTables[$objectType];
$field = $this->config->action->objectNameFields[$objectType];
- if($table != '`zt_todo`')
+ if($table != TABLE_TODO)
{
$objectNames[$objectType] = $this->dao->select("id, $field AS name")->from($table)->where('id')->in($objectIds)->fetchPairs();
}
diff --git a/module/action/view/trash.html.php b/module/action/view/trash.html.php
index a4f9a569c5..b09a3818d8 100755
--- a/module/action/view/trash.html.php
+++ b/module/action/view/trash.html.php
@@ -23,7 +23,7 @@
recTotal}&recPerPage={$pager->recPerPage}"; ?>
- | action->objectType);?> |
+ action->objectType);?> |
idAB);?> |
action->objectName;?> |
action->actor);?> |
diff --git a/module/admin/control.php b/module/admin/control.php
index c4a23b65ec..db0f309c6a 100644
--- a/module/admin/control.php
+++ b/module/admin/control.php
@@ -331,6 +331,9 @@ class admin extends control
$this->send(array('result' => 'success', 'message' => $this->lang->admin->saveSuccess, 'locate' => 'reload'));
}
+ $this->loadModel('message');
+ $this->loadModel('webhook');
+
$this->view->title = $this->lang->admin->log;
$this->view->position[] = html::a($this->createLink('webhook', 'browse'), $this->lang->admin->api);
$this->view->position[] = $this->lang->admin->log;
diff --git a/module/admin/lang/en.php b/module/admin/lang/en.php
index f7c4e122d0..643e542eff 100644
--- a/module/admin/lang/en.php
+++ b/module/admin/lang/en.php
@@ -29,23 +29,23 @@ $lang->admin->saveSuccess = 'Saved.';
$lang->admin->info = new stdclass();
$lang->admin->info->version = 'Current Version is %s. ';
-$lang->admin->info->links = 'You can visit ';
+$lang->admin->info->links = 'You can visit links below';
$lang->admin->info->account = 'Your ZenTao account is %s.';
$lang->admin->info->log = 'Logs that is beyond valid days will be deleted and it has to run cron.';
$lang->admin->notice = new stdclass();
-$lang->admin->notice->register = "Note: You haven't registered in ZenTao(www.zentao.pm). Register %s and get the latest ZenTao news.";
+$lang->admin->notice->register = "Note: You haven't registered in ZenTao(www.zentao.pm). %s then get the Latest ZenTao Upgrades and News.";
$lang->admin->notice->ignore = "Ignore";
$lang->admin->notice->int = "『%s』should be a positive integer.";
$lang->admin->register = new stdclass();
-$lang->admin->register->common = 'Account Binding';
-$lang->admin->register->caption = 'Register';
-$lang->admin->register->click = 'Click Here';
-$lang->admin->register->lblAccount = 'at least 3 characters; must contain letters and numbers.';
-$lang->admin->register->lblPasswd = 'at least 6 characters; must contain letters and numbers.';
+$lang->admin->register->common = 'Binding New Account';
+$lang->admin->register->caption = 'Register in Zentao Community';
+$lang->admin->register->click = 'Please Register here';
+$lang->admin->register->lblAccount = 'at least 3 characters pls; contains letters and numbers.';
+$lang->admin->register->lblPasswd = 'at least 6 characters pls; contains letters and numbers.';
$lang->admin->register->submit = 'Register';
-$lang->admin->register->bind = "If you have already registered an account, link your account %s.";
+$lang->admin->register->bind = "Binding Exsit Account";
$lang->admin->register->success = "You have registered with us!";
$lang->admin->bind = new stdclass();
@@ -54,20 +54,20 @@ $lang->admin->bind->success = "Account has been linked!";
$lang->admin->safe = new stdclass();
$lang->admin->safe->common = 'Security Policy';
-$lang->admin->safe->set = 'Password Security Settings';
-$lang->admin->safe->password = 'Password Security';
-$lang->admin->safe->weak = 'Weak Password';
+$lang->admin->safe->set = 'PasswordStrength';
+$lang->admin->safe->password = 'Password Strength';
+$lang->admin->safe->weak = 'Weak Passwords';
$lang->admin->safe->reason = 'Type';
-$lang->admin->safe->checkWeak = 'Weak Password Check';
-$lang->admin->safe->changeWeak = 'Change weak password';
+$lang->admin->safe->checkWeak = 'WeakPasswords';
+$lang->admin->safe->changeWeak = 'Weak password must be strengthen';
$lang->admin->safe->modifyPasswordFirstLogin = 'Change password when first login';
$lang->admin->safe->modeList[0] = 'N/A';
$lang->admin->safe->modeList[1] = 'Medium';
$lang->admin->safe->modeList[2] = 'Strong';
-$lang->admin->safe->modeRuleList[1] = 'must contain letters and numbers, at least six characters.';
-$lang->admin->safe->modeRuleList[2] = 'must contain letters, numbers and special characters, at least 10 characters.';
+$lang->admin->safe->modeRuleList[1] = 'Contains upper and lower case, numbers. Length >= 6';
+$lang->admin->safe->modeRuleList[2] = 'Contains upper and lower case, numbers and special characters. Length >= 10.';
$lang->admin->safe->reasonList['weak'] = 'Common Weak Password';
$lang->admin->safe->reasonList['account'] = 'Same as your account';
@@ -78,5 +78,5 @@ $lang->admin->safe->reasonList['birthday'] = 'Same as your DOB';
$lang->admin->safe->modifyPasswordList[1] = 'Yes';
$lang->admin->safe->modifyPasswordList[0] = 'No';
-$lang->admin->safe->noticeMode = 'User password will be checked when login, add/edit user password.';
-$lang->admin->safe->noticeStrong = 'The more uppercase letters and numbers a password has, the more secure it is!';
+$lang->admin->safe->noticeMode = 'Password will be checked when login, add/edit user.';
+$lang->admin->safe->noticeStrong = '';
diff --git a/module/admin/view/log.html.php b/module/admin/view/log.html.php
index 0e14808819..58573316b4 100644
--- a/module/admin/view/log.html.php
+++ b/module/admin/view/log.html.php
@@ -10,16 +10,9 @@
* @link http://www.zentao.net
*/
?>
-
+app->getModuleRoot() . 'webhook/view/header.html.php';?>
-
-
- createLink('webhook', 'browse'), $lang->admin->api);?>
- admin->log;?>
- admin->setting;?>
-
-