* Fix bug #39500,39464,39447.

This commit is contained in:
tanghucheng
2023-10-16 22:16:46 -04:00
parent b4f07a1d68
commit f94685f6fb
3 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -3425,7 +3425,7 @@ class execution extends control
$object = $this->project->getByID($objectID, 'project,sprint,stage,kanban');
$products = $this->product->getProducts($objectID);
$queryID = ($browseType == 'bySearch') ? (int)$param : 0;
$browseLink = $this->session->executionStoryList ? $this->session->executionStoryList : $this->createLink('execution', 'story', "executionID=$objectID");
$browseLink = $this->createLink('execution', 'story', "executionID=$objectID");
if($this->app->tab == 'project' and $object->multiple and !$browseLink) $browseLink = $this->createLink('projectstory', 'story', "objectID=$objectID&productID=0&branch=0&browseType=&param=0&storyType=$storyType");
if($object->type == 'kanban' && !$object->hasProduct) $this->lang->productCommon = $this->lang->project->common;
+5
View File
@@ -1096,6 +1096,11 @@ class project extends control
$this->project->setMenu($projectID);
if(!$projectID) return print(js::locate($this->createLink('project', 'browse')));
if(!$project->multiple)
{
$executionID = $this->execution->getNoMultipleID($projectID);
return print(js::locate($this->createLink('execution', 'task', "executionID=$executionID")));
}
if(!empty($project->model) and $project->model == 'kanban' and !(defined('RUN_MODE') and RUN_MODE == 'api')) return print(js::locate($this->createLink('project', 'index', "projectID=$projectID")));
/* Load pager and get tasks. */
+2
View File
@@ -36,7 +36,9 @@
<?php endif;?>
<?php if(isset($noMultipleExecutionID)):?>
<tr class='hide'>
<?php echo html::hidden('execution', $noMultipleExecutionID);?>
</tr>
<?php else:?>
<tr class='<?php echo ($app->tab == 'execution' and $executionID) ? 'hide' : '';?>'>
<th class='w-100px'><?php echo $lang->testtask->execution;?></th>