* Fix bug #29692.
This commit is contained in:
@@ -685,7 +685,7 @@ class execution extends control
|
||||
unset($this->config->bug->search['fields']['resolvedDate']);
|
||||
unset($this->config->bug->search['fields']['closedDate']);
|
||||
unset($this->config->bug->search['fields']['branch']);
|
||||
if(empty($execution->multiple) && empty($execution->hasProduct)) unset($this->config->bug->search['fields']['plan']);
|
||||
if(empty($execution->multiple) and empty($execution->hasProduct)) unset($this->config->bug->search['fields']['plan']);
|
||||
if(empty($project->hasProduct))
|
||||
{
|
||||
unset($this->config->bug->search['fields']['product']);
|
||||
|
||||
@@ -1174,12 +1174,12 @@ class project extends control
|
||||
$products = $this->product->getProducts($projectID);
|
||||
|
||||
if(!$project->multiple) unset($this->config->bug->datatable->fieldList['execution']);
|
||||
|
||||
if(!$project->hasProduct)
|
||||
{
|
||||
unset($this->config->bug->search['fields']['product']);
|
||||
if($project->model != 'scrum') unset($this->config->bug->search['fields']['plan']);
|
||||
}
|
||||
if(!$project->multiple and !$project->hasProduct) unset($this->config->bug->search['fields']['plan']);
|
||||
|
||||
$productPairs = array('0' => $this->lang->product->all);
|
||||
foreach($products as $productData) $productPairs[$productData->id] = $productData->name;
|
||||
|
||||
Reference in New Issue
Block a user