* Fix bug#34444.

This commit is contained in:
朱金勇
2023-04-20 03:44:43 +00:00
parent 119e6fe3f1
commit f91b05b309
3 changed files with 17 additions and 8 deletions
+9
View File
@@ -461,8 +461,17 @@ CHANGE `repo` `repo` mediumint unsigned NOT NULL DEFAULT '0',
CHANGE `mr` `mr` mediumint unsigned NOT NULL DEFAULT '0',
CHANGE `entry` `entry` text NULL,
CHANGE `lines` `lines` varchar(10) NOT NULL DEFAULT '',
CHANGE `feedbackBy` `feedbackBy` varchar(100) NOT NULL DEFAULT '',
CHANGE `notifyEmail` `notifyEmail` varchar(100) NOT NULL DEFAULT '',
CHANGE `v1` `v1` varchar(40) NOT NULL DEFAULT '',
CHANGE `v2` `v2` varchar(40) NOT NULL DEFAULT '',
CHANGE `duplicateBug` `duplicateBug` mediumint unsigned NOT NULL DEFAULT '0',
CHANGE `linkBug` `linkBug` varchar(255) NOT NULL DEFAULT '',
CHANGE `case` `case` mediumint unsigned NOT NULL DEFAULT '0',
CHANGE `result` `result` mediumint unsigned NOT NULL DEFAULT '0',
CHANGE `testtask` `testtask` mediumint unsigned NOT NULL DEFAULT '0',
CHANGE `identify` `identify` mediumint unsigned NOT NULL DEFAULT '0',
CHANGE `deadline` `deadline` date NULL,
CHANGE `activatedCount` `activatedCount` smallint NOT NULL DEFAULT '0',
+7 -7
View File
@@ -276,8 +276,8 @@ CREATE TABLE IF NOT EXISTS `zt_bug` (
`confirmed` tinyint(1) NOT NULL DEFAULT '0',
`activatedCount` smallint(6) NOT NULL DEFAULT '0',
`activatedDate` datetime NULL,
`feedbackBy` varchar(100) NOT NULL,
`notifyEmail` varchar(100) NOT NULL,
`feedbackBy` varchar(100) NOT NULL DEFAULT '',
`notifyEmail` varchar(100) NOT NULL DEFAULT '',
`mailto` text,
`openedBy` varchar(30) NOT NULL DEFAULT '',
`openedDate` datetime NOT NULL,
@@ -291,12 +291,12 @@ CREATE TABLE IF NOT EXISTS `zt_bug` (
`resolvedDate` datetime NULL,
`closedBy` varchar(30) NOT NULL DEFAULT '',
`closedDate` datetime NULL,
`duplicateBug` mediumint(8) unsigned NOT NULL,
`linkBug` varchar(255) NOT NULL,
`case` mediumint(8) unsigned NOT NULL,
`duplicateBug` mediumint(8) unsigned NOT NULL DEFAULT '0',
`linkBug` varchar(255) NOT NULL DEFAULT '',
`case` mediumint(8) unsigned NOT NULL DEFAULT '0',
`caseVersion` smallint(6) NOT NULL DEFAULT '1',
`feedback` mediumint(8) unsigned NOT NULL DEFAULT '0',
`result` mediumint(8) unsigned NOT NULL,
`result` mediumint(8) unsigned NOT NULL DEFAULT '0',
`repo` mediumint(8) unsigned NOT NULL DEFAULT '0',
`mr` mediumint(8) unsigned NOT NULL DEFAULT '0',
`entry` text NULL,
@@ -305,7 +305,7 @@ CREATE TABLE IF NOT EXISTS `zt_bug` (
`v2` varchar(40) NOT NULL DEFAULT '',
`repoType` varchar(30) NOT NULL DEFAULT '',
`issueKey` varchar(50) NOT NULL DEFAULT '',
`testtask` mediumint(8) unsigned NOT NULL,
`testtask` mediumint(8) unsigned NOT NULL DEFAULT '0',
`lastEditedBy` varchar(30) NOT NULL DEFAULT '',
`lastEditedDate` datetime NULL,
`deleted` enum('0','1') NOT NULL DEFAULT '0',
+1 -1
View File
@@ -857,7 +857,7 @@ class bug extends control
$this->view->stories = $stories;
$this->view->builds = $builds;
$this->view->users = $this->user->getPairs('devfirst|noclosed');
$this->view->projects = array('' => '') + $this->product->getProjectPairsByProduct($productID, $branch ? "0,$branch" : 0, 'id_desc', $projectID);
$this->view->projects = array('' => '') + $this->product->getProjectPairsByProduct($productID, $branch ? "0,$branch" : 0);
$this->view->projectID = $projectID;
$this->view->executions = array('' => '') + $this->product->getExecutionPairsByProduct($productID, $branch ? "0,$branch" : 0, 'id_desc', $projectID, 'multiple,stagefilter');
$this->view->executionID = $executionID;