Commit c1cbcccb authored by Nigel McNie's avatar Nigel McNie
Browse files

Make sure that in views, if the titles of blockinstances are linked to viewing...

Make sure that in views, if the titles of blockinstances are linked to viewing an individual artefact, it goes to the new view/artefact.php script.
parent ff2802c1
......@@ -370,8 +370,8 @@ class BlockInstance {
// block to be a link to view more information about that artefact
$configdata = $this->get('configdata');
if (!empty($configdata['artefactid'])) {
$smarty->assign('viewartefacturl', get_config('wwwroot') . 'view/view.php?id='
. $this->get('view') . '&artefact=' . $configdata['artefactid']);
$smarty->assign('viewartefacturl', get_config('wwwroot') . 'view/artefact.php?artefact='
. $configdata['artefactid'] . '&view=' . $this->get('view'));
}
$smarty->assign('content', $content);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment