diff --git a/db/update15.0.sql b/db/update15.0.sql index f3d4d00c13..1c0584c3b8 100644 --- a/db/update15.0.sql +++ b/db/update15.0.sql @@ -39,7 +39,6 @@ ALTER TABLE `zt_webhook` CHANGE `projects` `executions` mediumint(8) unsigned NO ALTER TABLE `zt_task` ADD `project` mediumint(8) unsigned NOT NULL AFTER `id`; ALTER TABLE `zt_doclib` ADD `project` mediumint(8) unsigned NOT NULL AFTER `product`; ALTER TABLE `zt_doc` ADD `project` mediumint(8) unsigned NOT NULL AFTER `id`; -ALTER TABLE `zt_story` ADD `project` mediumint(8) unsigned NOT NULL AFTER `id`; ALTER TABLE `zt_bug` ADD `project` mediumint(8) unsigned NOT NULL AFTER `id`; ALTER TABLE `zt_case` ADD `project` mediumint(8) unsigned NOT NULL AFTER `id`; ALTER TABLE `zt_testtask` ADD `project` mediumint(8) unsigned NOT NULL AFTER `id`; diff --git a/db/zentao.sql b/db/zentao.sql index 0752a52985..a20bee89ee 100644 --- a/db/zentao.sql +++ b/db/zentao.sql @@ -807,7 +807,6 @@ CREATE TABLE IF NOT EXISTS `zt_stakeholder` ( -- DROP TABLE IF EXISTS `zt_story`; CREATE TABLE IF NOT EXISTS `zt_story` ( `id` mediumint(8) unsigned NOT NULL auto_increment, - `project` mediumint(8) unsigned NOT NULL, `parent` mediumint(9) NOT NULL default '0', `product` mediumint(8) unsigned NOT NULL default '0', `branch` mediumint(8) unsigned NOT NULL default '0', @@ -1550,7 +1549,6 @@ INSERT INTO `zt_grouppriv` (`group`, `module`, `method`) VALUES (1,'program','whitelist'), (1,'program','unbindWhielist'), (1,'program','unlinkStakeholder'), -(1,'program','view'), (1,'project','activate'), (1,'project','all'), (1,'project','batchedit'), @@ -2358,7 +2356,6 @@ INSERT INTO `zt_grouppriv` (`group`, `module`, `method`) VALUES (4,'program','whitelist'), (4,'program','unbindWhielist'), (4,'program','unlinkStakeholder'), -(4,'program','view'), (4,'project','activate'), (4,'project','all'), (4,'project','batchedit'), @@ -4147,5 +4144,3 @@ INSERT INTO `zt_config` (`owner`, `module`, `section`, `key`, `value`) VALUES (' INSERT INTO `zt_config` (`owner`, `module`, `section`, `key`, `value`) VALUES ('system', 'custom', '', 'URSR', '6'); INSERT INTO `zt_config` (`owner`, `module`, `section`, `key`, `value`) VALUES ('system', 'project', '', 'unitList', 'CNY,USD'); INSERT INTO `zt_config` (`owner`, `module`, `section`, `key`, `value`) VALUES ('system', 'project', '', 'defaultCurrency', 'CNY'); -INSERT INTO `zt_config` (`owner`, `module`, `section`, `key`, `value`) VALUES ('system', 'common', '', 'CRProduct', '1'); -INSERT INTO `zt_config` (`owner`, `module`, `section`, `key`, `value`) VALUES ('system', 'common', '', 'CRExecution', '1'); diff --git a/lib/front/front.class.php b/lib/front/front.class.php index 4777fb3936..1f70cd3b39 100644 --- a/lib/front/front.class.php +++ b/lib/front/front.class.php @@ -12,6 +12,7 @@ */ helper::import(dirname(dirname(__FILE__)) . '/base/front/front.class.php'); + /** * html类,生成html标签。 * The html class, to build html tags. diff --git a/module/block/view/scrumtestblock.html.php b/module/block/view/scrumtestblock.html.php index 6b86a25809..5dde0ec7ba 100644 --- a/module/block/view/scrumtestblock.html.php +++ b/module/block/view/scrumtestblock.html.php @@ -22,7 +22,7 @@
" . $link . "
"; - - return common::hasPriv('execution', 'all') ? $html : ''; - } - /* * Get execution switcher. * @@ -912,7 +894,8 @@ class executionModel extends model } $dropMenuLink = helper::createLink('execution', 'ajaxGetDropMenu', "objectID=$executionID&module=$currentModule&method=$currentMethod&extra="); - $output = "