Commit 9f58b4cc authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files

Fix bug 610 - link to blog post when metadata is displayed

parent 9ae37bd1
......@@ -564,6 +564,9 @@ class ArtefactTypeBlogPost extends ArtefactType {
$data['attachments'] = array('name' => get_string('attachments', 'artefact.blog'),
'value' => $this->count_attachments() . ' '
. get_string('files', 'artefact.file'));
if (isset($options['viewid']) && artefact_in_view($id = $this->get('id'), $options['viewid'])) {
$data['title']['value'] = '<a href="' . get_config('wwwroot') . 'view/view.php?view=' . $options['viewid'] . '&artefact=' . $id . '">' . $data['title']['value'] . '</a>';
}
return $data;
}
......
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