* Code for bug export bug.
This commit is contained in:
@@ -2328,6 +2328,11 @@ class bug extends control
|
||||
$product = $this->loadModel('product')->getByID($productID);
|
||||
if($product->type == 'normal') $this->config->bug->exportFields = str_replace('branch,', '', $this->config->bug->exportFields);
|
||||
|
||||
if($this->app->tab == 'project' or $this->app->tab == 'execution')
|
||||
{
|
||||
if($product->shadow) $this->config->bug->exportFields = str_replace('product,', '', $this->config->bug->exportFields);
|
||||
}
|
||||
|
||||
$fileName = $this->lang->bug->common;
|
||||
if($executionID)
|
||||
{
|
||||
|
||||
@@ -3639,7 +3639,7 @@ class bugModel extends model
|
||||
public function getRelatedObjects($object, $pairs = '')
|
||||
{
|
||||
/* Get bugs. */
|
||||
$bugs = $this->dao->select('*')->from(TABLE_BUG)->where($this->session->bugQueryCondition)->fetchAll('id');
|
||||
$bugs = $this->loadModel('port')->getQueryDatas('bug');
|
||||
|
||||
/* Get related objects id lists. */
|
||||
$relatedObjectIdList = array();
|
||||
|
||||
@@ -169,6 +169,7 @@ class port extends control
|
||||
{
|
||||
$product = $this->loadModel('product')->getByID($this->session->bugPortParams['productID']);
|
||||
if($product->type == 'normal') unset($fields['branch']);
|
||||
if($product->shadow and ($this->app->tab == 'execution' or $this->app->tab == 'project')) unset($fields['product']);
|
||||
}
|
||||
if($model == 'task') $datas = $this->task->processDatas4Task($datas);
|
||||
$html = $this->port->buildNextList($datas->datas, $lastID, $fields, $pagerID, $model);
|
||||
|
||||
Reference in New Issue
Block a user