* Add story changed filed and finish task #7716.

This commit is contained in:
Yagami
2020-08-31 14:29:06 +08:00
parent ad750e1f94
commit 9baaf4c0c3
5 changed files with 7 additions and 9 deletions
+2
View File
@@ -295,3 +295,5 @@ ALTER TABLE `zt_block` ADD `type` char(30) NOT NULL AFTER `module`;
ALTER TABLE `zt_block` ADD UNIQUE `account_module_type_order` (`account`, `module`, `type`, `order`), DROP INDEX `accountModuleOrder`;
INSERT INTO `zt_cron` (`m`, `h`, `dom`, `mon`, `dow`, `command`, `remark`, `type`, `buildin`, `status`, `lastTime`) VALUES ('1', '0', '*', '*', '*', 'moduleName=weekly&methodName=computeWeekly', '更新项目周报', 'system', 0, 'normal', '2020-08-27 10:07:53');
ALTER TABLE `zt_story` ADD `storyChanged` enum('0','1') NOT NULL DEFAULT '0' AFTER `version`;
+1
View File
@@ -919,6 +919,7 @@ CREATE TABLE IF NOT EXISTS `zt_story` (
`linkStories` varchar(255) NOT NULL,
`duplicateStory` mediumint(8) unsigned NOT NULL,
`version` smallint(6) NOT NULL default '1',
`storyChanged` enum('0','1') NOT NULL DEFAULT '0',
`deleted` enum('0','1') NOT NULL default '0',
PRIMARY KEY (`id`),
KEY `product` (`product`),
+2 -9
View File
@@ -168,14 +168,7 @@ class baseHelper
{
global $config;
if(!$programID) return $link;
if($onlybody)
{
$link .= $config->requestType != 'GET' ? "&pgm=$programID" : "&pgm=$programID";
}
else
{
$link .= $config->requestType != 'GET' ? "?pgm=$programID" : "&pgm=$programID";
}
$link .= strpos($link, '?') === false ? "?pgm=$programID" : "&pgm=$programID";
return $link;
}
@@ -197,7 +190,7 @@ class baseHelper
{
global $config;
if(!$onlyBody and !self::inOnlyBodyMode()) return $link;
$onlybodyString = $config->requestType != 'GET' ? "?onlybody=yes" : "&onlybody=yes";
$onlybodyString = strpos($link, '?') === false ? "?onlybody=yes" : "&onlybody=yes";
return $link . $onlybodyString;
}
+1
View File
@@ -129,6 +129,7 @@ $lang->story->allStories = 'All Stories';
$lang->story->unclosed = 'Unclosed';
$lang->story->deleted = 'Deleted';
$lang->story->released = 'Released Stories';
$lang->story->storyChanged = 'Requirement Changed';
$lang->story->design = 'Designs';
$lang->story->case = 'Cases';
$lang->story->bug = 'Bugs';
+1
View File
@@ -129,6 +129,7 @@ $lang->story->allStories = "所有{$lang->storyCommon}";
$lang->story->unclosed = '未关闭';
$lang->story->deleted = '已删除';
$lang->story->released = "已发布{$lang->storyCommon}数";
$lang->story->storyChanged = '用需变更';
$lang->story->design = '相关设计';
$lang->story->case = '相关用例';
$lang->story->bug = '相关Bug';