* Hide the plan field on the linkStory page of the execution module.
This commit is contained in:
@@ -858,15 +858,6 @@ class execution extends control
|
||||
}
|
||||
}
|
||||
|
||||
$projectID = $execution->project;
|
||||
$project = $this->loadModel('project')->getByID($projectID);
|
||||
|
||||
if(empty($project->hasProduct))
|
||||
{
|
||||
unset($this->config->product->search['fields']['product']);
|
||||
if($project->model != 'scrum') unset($this->config->product->search['fields']['plan']);
|
||||
}
|
||||
|
||||
$this->execution->buildStorySearchForm($products, $branchGroups, $modules, $queryID, $actionURL, 'executionStory', $execution);
|
||||
|
||||
/* Header and position. */
|
||||
|
||||
@@ -2248,7 +2248,7 @@ class executionModel extends model
|
||||
{
|
||||
unset($this->config->product->search['fields']['product']);
|
||||
|
||||
if($project->model == 'kanban') unset($this->config->product->search['fields']['plan']);
|
||||
if($project->model != 'kanban') unset($this->config->product->search['fields']['plan']);
|
||||
}
|
||||
|
||||
$this->loadModel('search')->setSearchParams($this->config->product->search);
|
||||
|
||||
@@ -47,9 +47,7 @@
|
||||
<th class='c-object'><?php echo $lang->story->product;?></th>
|
||||
<?php endif;?>
|
||||
<th class='c-module'><?php echo $lang->story->module;?></th>
|
||||
<?php if($project->hasProduct || (!$project->hasProduct && $project->model != 'kanban')):?>
|
||||
<th class='c-plan'><?php echo $lang->story->plan;?></th>
|
||||
<?php endif;?>
|
||||
<th class='c-plan <?php if(empty($project->hasProduct) && $project->model != 'scrum') echo 'hide';?>'><?php echo $lang->story->plan;?></th>
|
||||
<th class='c-stage'><?php echo $lang->story->stage;?></th>
|
||||
<?php if($project->hasProduct && $productType != 'normal'):?>
|
||||
<th class='c-branch'><?php echo $lang->product->branchName[$productType];?></th>
|
||||
@@ -85,9 +83,7 @@
|
||||
<td class='text-left' title='<?php echo $products[$story->product]->name?>'><?php echo html::a($this->createLink('product', 'browse', "productID=$story->product&branch=$story->branch"), $products[$story->product]->name);?></td>
|
||||
<?php endif;?>
|
||||
<td class='c-module text-left' title='<?php echo zget($modules, $story->module, '')?>'><?php echo zget($modules, $story->module, '')?></td>
|
||||
<?php if($project->hasProduct || (!$project->hasProduct && $project->model != 'kanban')):?>
|
||||
<td class='text-ellipsis' title='<?php echo $story->planTitle;?>'><?php echo $story->planTitle;?></td>
|
||||
<?php endif;?>
|
||||
<td class='text-ellipsis <?php if(empty($project->hasProduct) && $project->model != 'scrum') echo 'hide';?>' title='<?php echo $story->planTitle;?>'><?php echo $story->planTitle;?></td>
|
||||
<td><?php echo zget($lang->story->stageList, $story->stage);?></td>
|
||||
<?php if($project->hasProduct && $productType != 'normal'):?>
|
||||
<td><?php if(isset($branchGroups[$story->product][$story->branch])) echo $branchGroups[$story->product][$story->branch];?></td>
|
||||
|
||||
Reference in New Issue
Block a user