diff --git a/module/doc/js/common.js b/module/doc/js/common.js index 5b60faee3b..3ff45922a0 100644 --- a/module/doc/js/common.js +++ b/module/doc/js/common.js @@ -30,7 +30,8 @@ function loadObjectModules(objectType, objectID, docType) */ function loadExecutions(projectID) { - var link = createLink('project', 'ajaxGetExecutions', "projectID=" + projectID + "&executionID=0&mode=multiple,leaf,noprefix&type=sprint,stage"); + var executionID = $('#execution').val(); + var link = createLink('project', 'ajaxGetExecutions', "projectID=" + projectID + "&executionID=" + executionID + "&mode=multiple,leaf,noprefix&type=sprint,stage"); $('#executionBox').load(link, function() { var $extension = $('#executionBox').find('select'); diff --git a/module/doc/view/createtexttype.html.php b/module/doc/view/createtexttype.html.php index fb791de3e1..dd5a5a25b9 100644 --- a/module/doc/view/createtexttype.html.php +++ b/module/doc/view/createtexttype.html.php @@ -70,7 +70,7 @@ project : $objectID, "class='form-control picker-select' onchange=loadExecutions(this.value)");?> app->tab == 'doc' and $config->vision == 'rnd'):?> doc->execution?> - + id : '', "class='form-control chosen' onchange='loadObjectModules(\"execution\", this.value)'")?>