* Fix bug.

This commit is contained in:
tianshujie98
2021-03-18 15:39:35 +08:00
parent f5f19c135a
commit fcf20e03ff
3 changed files with 4 additions and 2 deletions
+2
View File
@@ -685,6 +685,8 @@ class project extends control
$this->loadModel('build');
$project = $this->project->getByID($projectID);
$this->session->set('buildList', $this->app->getURI(true));
/* Get products' list. */
$products = $this->project->getProducts($projectID, false);
$products = array('' => '') + $products;
+1 -1
View File
@@ -20,6 +20,6 @@ $(function()
*/
function changeProduct(productID)
{
link = createLink('project', 'build', 'type=product&param=' + productID);
link = createLink('project', 'build', 'projectID=' + projectID + '&type=product&param=' + productID);
location.href = link;
}
+1 -1
View File
@@ -75,7 +75,7 @@
<?php
if(common::hasPriv('build', 'linkstory') and common::hasPriv('build', 'view') and common::canBeChanged('build', $build))
{
echo html::a($this->createLink('build', 'view', "buildID=$build->id&type=story&link=true"), "<i class='icon icon-link'></i>", '', "class='btn' title='{$lang->build->linkStory}'");
echo html::a($this->createLink('build', 'view', "buildID=$build->id&type=story&link=true"), "<i class='icon icon-link'></i>", '', "class='btn' title='{$lang->build->linkStory}' data-app='project'");
}
common::printIcon('testtask', 'create', "product=$build->product&project={$build->execution}&build=$build->id", $build, 'list', 'bullhorn', '', '', '', "data-app='execution'");
$lang->project->bug = $lang->execution->viewBug;