* Fix bug #26845.
This commit is contained in:
@@ -2501,6 +2501,7 @@ EOD;
|
||||
if($module == 'story' and !empty($params['storyType']) and strpos(",story,requirement,", ",{$params['storyType']},") !== false) $module = $params['storyType'];
|
||||
if($module == 'product' and $method == 'browse' and !empty($app->params['storyType']) and $app->params['storyType'] == 'requirement') $method = 'requirement';
|
||||
if($module == 'product' and $method == 'browse' and !empty($params['storyType']) and $params['storyType'] == 'requirement') $method = 'requirement';
|
||||
if($module == 'story' and $method == 'linkrequirements') $module = 'requirement';
|
||||
|
||||
/* If the user is doing a tutorial, have all tutorial privs. */
|
||||
if(defined('TUTORIAL'))
|
||||
|
||||
@@ -2207,9 +2207,10 @@ class story extends control
|
||||
$products = $this->product->getPairs();
|
||||
$queryID = ($browseType == 'bySearch') ? (int)$param : 0;
|
||||
$type = $story->type == 'story' ? 'linkRelateSR' : 'linkRelateUR';
|
||||
$method = $story->type == 'story' ? 'linkStories' : 'linkRequirements';
|
||||
|
||||
/* Build search form. */
|
||||
$actionURL = $this->createLink('story', 'linkStories', "storyID=$storyID&browseType=bySearch&excludeStories=$excludeStories&queryID=myQueryID", '', true);
|
||||
$actionURL = $this->createLink('story', $method, "storyID=$storyID&browseType=bySearch&excludeStories=$excludeStories&queryID=myQueryID", '', true);
|
||||
$this->product->buildSearchForm($story->product, $products, $queryID, $actionURL);
|
||||
|
||||
$this->view->story = $story;
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
<span class='label label-id'><?php echo $story->id;?></span>
|
||||
<?php echo html::a($this->createLink('story', 'view', "storyID=$story->id"), $story->title, '_blank', "title='$story->title'");?>
|
||||
<?php $title = $story->type == 'story' ? $lang->story->linkStoriesAB : $lang->story->linkRequirementsAB?>
|
||||
<small class='text-muted'> <?php echo $lang->arrow . $lang->story->linkStoriesAB;?></small>
|
||||
<small class='text-muted'> <?php echo $lang->arrow . $title;?></small>
|
||||
</h2>
|
||||
</div>
|
||||
<div id='queryBox' data-module='story' class='show divider'></div>
|
||||
|
||||
Reference in New Issue
Block a user