diff --git a/module/product/view/browse.html.php b/module/product/view/browse.html.php index f43f7bad37..f637a11947 100644 --- a/module/product/view/browse.html.php +++ b/module/product/view/browse.html.php @@ -184,7 +184,9 @@ $lang->story->createCommon = $storyType == 'story' ? $lang->story->createStory :
story->noStory : $lang->story->noRequirement;?> - createLink('story', 'create', "productID={$productID}&branch={$branch}&moduleID={$moduleID}&storyID=0&projectID=0&bugID=0&planID=0&todoID=0&extra=&type=$storyType"), " " . $lang->story->createCommon, '', "class='btn btn-info'");?> + app->rawModule == 'projectstory' ? $this->session->PRJ : 0;?> + app->rawModule == 'projectstory' ? 'project' : 'product';?> + createLink('story', 'create', "productID={$productID}&branch={$branch}&moduleID={$moduleID}&storyID=0&projectID=$projectID&bugID=0&planID=0&todoID=0&extra=&type=$storyType"), " " . $lang->story->createCommon, '', "class='btn btn-info' data-group='$openModule'");?>