diff --git a/module/testtask/js/common.js b/module/testtask/js/common.js
index 848fe6be67..d44d3f7072 100644
--- a/module/testtask/js/common.js
+++ b/module/testtask/js/common.js
@@ -57,7 +57,14 @@ function createBug(obj)
var link = createLink('bug', 'create', params + ',stepIdList=' + stepIdList);
if(onlybody = 'yes') link += '#app=qa';
- window.parent.$.apps.open(link);
+ if(openApp == 'my')
+ {
+ window.parent.$.apps.open(link, 'qa');
+ }
+ else
+ {
+ window.open(link, '_parent');
+ }
config.onlybody = onlybody;
}
@@ -81,7 +88,7 @@ function loadExecutionRelated(executionID)
* @access public
* @return void
*/
-function loadExecutionBuilds(executionID)
+function loadExecutionBuilds(executionID, selected)
{
selectedBuild = $('#build').val();
if(!selectedBuild) selectedBuild = 0;
@@ -90,6 +97,7 @@ function loadExecutionBuilds(executionID)
$('#buildBox').load(link, function()
{
$('#resolvedBuild').attr('id', 'build').attr('name', 'build').find('option[value=trunk]').remove();
+ if(selected) $('#build').val(selected);
$('#build').chosen();
});
}
diff --git a/module/testtask/view/results.html.php b/module/testtask/view/results.html.php
index 5611ea576a..fc423000a6 100644
--- a/module/testtask/view/results.html.php
+++ b/module/testtask/view/results.html.php
@@ -11,6 +11,7 @@
*/
?>
+openApp);?>
diff --git a/module/testtask/view/runcase.html.php b/module/testtask/view/runcase.html.php
index 50d3c53500..faa2195717 100644
--- a/module/testtask/view/runcase.html.php
+++ b/module/testtask/view/runcase.html.php
@@ -13,6 +13,7 @@
save);?>
+openApp);?>