diff --git a/module/doc/control.php b/module/doc/control.php index 7fc73089d9..454a02ac23 100755 --- a/module/doc/control.php +++ b/module/doc/control.php @@ -158,6 +158,7 @@ class doc extends control if($type == 'execution' and $this->post->execution) $objectID = $this->post->execution; if($type == 'custom') $objectID = 0; + $type = $type == 'execution' && $this->app->tab != 'execution' ? 'project' : $type; $this->action->create('docLib', $libID, 'Created'); @@ -185,7 +186,6 @@ class doc extends control } } - if($type == 'execution') { $objects = $this->execution->getPairs(0, 'sprint,stage', 'multiple,leaf,noprefix,withobject'); diff --git a/module/doc/js/common.js b/module/doc/js/common.js index 3a7720840d..76aefbbb1c 100644 --- a/module/doc/js/common.js +++ b/module/doc/js/common.js @@ -333,17 +333,23 @@ function locateNewLib(type, objectID, libID) { var method = 'teamSpace'; var params = 'objectID=' + objectID + '&libID=' + libID; + var module = 'doc'; if(type == 'product' || type == 'project') { method = type + 'Space'; } + else if(type == 'execution') + { + module = 'execution'; + method = 'doc'; + } else if(type == 'mine') { method = 'mySpace'; params = 'type=mine&libID=' + libID; } - location.href = createLink('doc', method, params); + location.href = createLink(module, method, params); } /**