+ session->reportList ? $app->session->reportList : $browseLink;?>
- session->reportList != false ? $app->session->reportList : $browseLink;?>
" . $lang->goback, '', "class='btn btn-primary'");?>
@@ -116,7 +116,7 @@
objectID&objectType=$report->objectType&extra=$report->id"), "", '', "class='btn' title='{$lang->testreport->recreate}'");
+ if(common::hasPriv('testreport', 'create')) echo html::a(inLink('create', "objectID=$report->objectID&objectType=$report->objectType&extra=$report->id"), "", '', "class='btn' title='{$lang->testreport->recreate}' data-app='{$this->app->openApp}'");
common::printIcon('testreport', 'edit', "reportID=$report->id", '', 'button');
common::printIcon('testreport', 'delete', "reportID=$report->id", '', 'button', 'trash', 'hiddenwin');
}
diff --git a/module/testtask/control.php b/module/testtask/control.php
index bce40516ea..271c12eb35 100644
--- a/module/testtask/control.php
+++ b/module/testtask/control.php
@@ -884,7 +884,11 @@ class testtask extends control
}
$this->send($response);
}
- die(js::locate(inlink('browse', "product=$task->product"), 'parent'));
+
+ $browseList = $this->createLink('testtask', 'browse', "productID=$task->product");
+ if($this->app->openApp == 'execution') $browseList = $this->createLink('execution', 'testtask', "executionID=$task->execution");
+ if($this->app->openApp == 'project') $browseList = $this->createLink('project', 'testtask', "projectID=$task->project");
+ die(js::locate($browseList, 'parent'));
}
}
diff --git a/module/testtask/model.php b/module/testtask/model.php
index d39103c1ec..85bdc8d3a7 100644
--- a/module/testtask/model.php
+++ b/module/testtask/model.php
@@ -72,7 +72,6 @@ class testtaskModel extends model
->leftJoin(TABLE_PROJECTPRODUCT)->alias('t5')->on('t1.execution = t5.project and t1.product = t5.product')
->where('t1.deleted')->eq(0)
- ->beginIF($this->config->systemMode == 'new' and $this->app->openApp != 'qa')->andWhere('t1.project')->eq($this->session->project)->fi()
->andWhere('t1.auto')->ne('unit')
->beginIF(!$this->app->user->admin)->andWhere('t3.id')->in("0,{$this->app->user->view->sprints}")->fi()
->beginIF($scopeAndStatus[0] == 'local')->andWhere('t1.product')->eq((int)$productID)->fi()