diff --git a/db/update15.0.rc3.sql b/db/update15.0.rc3.sql
index a178bfc08c..124a3ea4a3 100644
--- a/db/update15.0.rc3.sql
+++ b/db/update15.0.rc3.sql
@@ -1,2 +1,4 @@
ALTER TABLE `zt_webhook` CHANGE `projects` `executions` text NOT NULL;
ALTER TABLE `zt_webhook` CHANGE `executions` `executions` text NOT NULL;
+
+ALTER TABLE `zt_repo` ADD `extra` char(30) COLLATE 'utf8_general_ci' NOT NULL AFTER `desc`;
diff --git a/db/zentao.sql b/db/zentao.sql
index 40ecb203ab..2972f01cdf 100644
--- a/db/zentao.sql
+++ b/db/zentao.sql
@@ -751,6 +751,7 @@ CREATE TABLE IF NOT EXISTS `zt_repo` (
`synced` tinyint(1) NOT NULL DEFAULT '0',
`lastSync` datetime NOT NULL,
`desc` text NOT NULL,
+ `extra` char(30) NOT NULL,
`deleted` tinyint(1) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
diff --git a/module/action/view/trash.html.php b/module/action/view/trash.html.php
index 918bd224d7..d29da838b8 100755
--- a/module/action/view/trash.html.php
+++ b/module/action/view/trash.html.php
@@ -54,8 +54,8 @@
$methodName = 'view';
if($module == 'caselib')
{
- $methodName = 'libview';
- $module = 'testsuite';
+ $methodName = 'view';
+ $module = 'caselib';
}
if(isset($config->action->customFlows[$action->objectType]))
{
diff --git a/module/block/js/admin.js b/module/block/js/admin.js
index 9586844079..19c387d4c9 100644
--- a/module/block/js/admin.js
+++ b/module/block/js/admin.js
@@ -15,7 +15,8 @@ $(function()
}
else
{
- var lang = config.clientLang;
+ var lang = config.clientLang;
+ blockTitle = $blockParams.find('#title').val();
if(lang.indexOf('zh') >= 0)
{
if(blockTitle.indexOf(preValue) >= 0)
diff --git a/module/bug/js/common.js b/module/bug/js/common.js
index d35318470a..92ff94764e 100644
--- a/module/bug/js/common.js
+++ b/module/bug/js/common.js
@@ -544,7 +544,7 @@ function notice()
if($('#openedBuild').find('option').length <= 1)
{
var html = '';
- if($('#execution').length == 0 || $('#execution').val() == '')
+ if($('#execution').length == 0 || $('#execution').val() == 0)
{
var branch = $('#branch').val();
if(typeof(branch) == 'undefined') branch = 0;
diff --git a/module/bug/view/view.html.php b/module/bug/view/view.html.php
index 40338b4cd7..d8ad8fa414 100644
--- a/module/bug/view/view.html.php
+++ b/module/bug/view/view.html.php
@@ -117,7 +117,7 @@
type != 'normal'):?>
- | product->branch, $lang->product->branchName[$product->name]);?> |
+ product->branch, $lang->product->branchName[$product->type]);?> |
product&branch=$bug->branch", $branchName)) echo $branchName;?> |
diff --git a/module/execution/control.php b/module/execution/control.php
index 5382f57de5..d9b8526fc4 100644
--- a/module/execution/control.php
+++ b/module/execution/control.php
@@ -2044,6 +2044,13 @@ class execution extends control
if($unresolvedBugs->count) $tips .= sprintf($this->lang->execution->unresolvedBug, $unresolvedBugs->count);
if($tips) $tips = $this->lang->execution->unfinishedExecution . $tips;
+ $type = $this->dao->select('type')->from(TABLE_EXECUTION)->where('id')->eq($executionID)->fetch('type');
+ if($type == 'stage')
+ {
+ if($tips) $tips = str_replace($this->lang->executionCommon, $this->lang->project->stage, $tips);
+ $this->lang->execution->confirmDelete = str_replace($this->lang->executionCommon, $this->lang->project->stage, $this->lang->execution->confirmDelete);
+ }
+
echo js::confirm($tips . sprintf($this->lang->execution->confirmDelete, $this->executions[$executionID]), $this->createLink('execution', 'delete', "executionID=$executionID&confirm=yes"));
exit;
}
@@ -2817,6 +2824,10 @@ class execution extends control
$this->fetch('file', 'export2' . $this->post->fileType, $_POST);
}
+ $this->loadModel('project');
+ $project = $this->project->getByID($this->session->project);
+ if($project->model == 'waterfall') $this->lang->executionCommon = $this->lang->project->stage;
+
$this->view->fileName = (in_array($status, array('all', 'undone')) ? $this->lang->execution->$status : $this->lang->execution->statusList[$status]) . $this->lang->executionCommon;
$this->display();
diff --git a/module/execution/model.php b/module/execution/model.php
index c2b818b864..a65a6ec287 100644
--- a/module/execution/model.php
+++ b/module/execution/model.php
@@ -69,6 +69,14 @@ class executionModel extends model
/* Unset story, bug, build and testtask if type is ops. */
$execution = $this->getByID($executionID);
+ if($execution->type == 'stage')
+ {
+ global $lang;
+ $this->loadModel('execution');
+ $lang->executionCommon = $lang->project->stage;
+ include $this->app->getModulePath('execution') . 'lang/' . $this->app->getClientLang() . '.php';
+ }
+
if($execution and $execution->lifetime == 'ops')
{
unset($this->lang->execution->menu->story);
@@ -387,10 +395,10 @@ class executionModel extends model
$this->app->loadLang('doc');
$lib = new stdclass();
$lib->execution = $executionID;
- $lib->name = $this->lang->doclib->main['execution'];
- $lib->type = 'execution';
- $lib->main = '1';
- $lib->acl = 'default';
+ $lib->name = $type == 'stage' ? str_replace($this->lang->executionCommon, $this->lang->project->stage, $this->lang->doclib->main['execution']) : $this->lang->doclib->main['execution'];
+ $lib->type = 'execution';
+ $lib->main = '1';
+ $lib->acl = 'default';
$this->dao->insert(TABLE_DOCLIB)->data($lib)->exec();
$whitelist = explode(',', $sprint->whitelist);
diff --git a/module/my/view/project.html.php b/module/my/view/project.html.php
index 83b0a663c4..0f43c5afb9 100644
--- a/module/my/view/project.html.php
+++ b/module/my/view/project.html.php
@@ -91,7 +91,7 @@
diff --git a/module/product/view/browse.html.php b/module/product/view/browse.html.php
index 9b10f31353..86749de998 100644
--- a/module/product/view/browse.html.php
+++ b/module/product/view/browse.html.php
@@ -81,9 +81,7 @@ $projectIDParam = $isProjectStory ? "projectID=$projectID&" : '';
moduleName = $this->app->rawModule;
- $this->methodName = $this->app->rawMethod;
- foreach(customModel::getFeatureMenu($this->moduleName, $this->methodName) as $menuItem)
+ foreach(customModel::getFeatureMenu($this->app->rawModule, $this->app->rawMethod) as $menuItem)
{
if(isset($menuItem->hidden)) continue;
if($menuItem->name == 'emptysr' && $storyType == 'story') continue;
@@ -341,6 +339,7 @@ $projectIDParam = $isProjectStory ? "projectID=$projectID&" : '';