diff --git a/module/datatable/control.php b/module/datatable/control.php
index 8c2b0c4886..65c14a6580 100644
--- a/module/datatable/control.php
+++ b/module/datatable/control.php
@@ -97,6 +97,7 @@ class datatable extends control
unset($cols['taskCount']);
unset($cols['bugCount']);
unset($cols['caseCount']);
+ $cols['title']['title'] = str_replace($this->lang->SRCommon, $this->lang->URCommon, $this->lang->story->title);
}
$this->view->cols = $cols;
diff --git a/module/story/view/view.html.php b/module/story/view/view.html.php
index a09a2949eb..6bd3407f6c 100644
--- a/module/story/view/view.html.php
+++ b/module/story/view/view.html.php
@@ -402,12 +402,13 @@
type == 'story' ? common::hasPriv('requirement', 'view') : common::hasPriv('story', 'view');
+ $relation = array();
+ $relationType = $story->type == 'story' ? 'requirement' : 'story';
+ $canViewLinkStory = common::hasPriv($relationType, 'view', null, "storyType=$relationType");
foreach($relations as $item) $relation[$item->id] = $item->title;
foreach($relation as $id => $title)
{
- echo "- " . ($canViewLinkStory ? html::a($this->createLink('story', 'view', "id=$id&version=0¶m=0&storyType=$story->type", '', true), "#$id $title", '', "class='iframe' data-width='80%'") : "#$id $title");
+ echo "
- " . ($canViewLinkStory ? html::a($this->createLink('story', 'view', "id=$id&version=0¶m=0&storyType=$relationType", '', true), "#$id $title", '', "class='iframe' data-width='80%'") : "#$id $title");
echo html::a($this->createLink('story', 'linkStory', "storyID=$story->id&type=remove&linkedID=$id"), '', 'hiddenwin', "class='deleter hide removeButton'");
}
?>