diff --git a/module/story/ui/view.html.php b/module/story/ui/view.html.php index 4e368cc4a4..64491aafa3 100644 --- a/module/story/ui/view.html.php +++ b/module/story/ui/view.html.php @@ -197,7 +197,7 @@ foreach($actions as $key => $action) continue; } - if(isset($action['url'])) $actions[$key]['url'] = str_replace(array('{id}', '{type}', '{product}', '{branch}', '{module}', '{execution}'), array($story->id, $story->type, $story->product, $story->branch, $story->module, isset($projectID) ? $projectID : 0), $action['url']); + if(isset($action['url'])) $actions[$key]['url'] = str_replace(array('{id}', '{type}', '{product}', '{branch}', '{module}', '{execution}'), array($story->id, $story->type, $story->product, $story->branch, $story->module, $app->tab == 'project' ? $projectID : $executionID), $action['url']); if(isset($action['items'])) { foreach($action['items'] as $itemKey => $itemAction)