* Optimize.

This commit is contained in:
liugang
2022-09-19 14:45:54 +08:00
parent 06d630ad51
commit 24968b1f19
+5 -2
View File
@@ -857,8 +857,11 @@ 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(empty($project->hasProduct) and $project->model != 'scrum') unset($this->config->product->search['fields']['plan']);
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', $executionID);