* Fix bug #39500,39464,39447.
This commit is contained in:
@@ -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=¶m=0&storyType=$storyType");
|
||||
if($object->type == 'kanban' && !$object->hasProduct) $this->lang->productCommon = $this->lang->project->common;
|
||||
|
||||
|
||||
@@ -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. */
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user