Commit a3eba3a6 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Remove the link to display the plan artefact on its own page


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent f1c0491a
......@@ -230,6 +230,10 @@ class ArtefactTypePlan extends ArtefactType {
return $elements;
}
// @TODO
public function render_self() {
return array('html' => '<div>' . hsc($this->title) . '</div>', 'javascript' => '');
}
}
class ArtefactTypeTask extends ArtefactType {
......
......@@ -643,7 +643,8 @@ class BlockInstance {
// If this block is for just one artefact, we set the title of the
// block to be a link to view more information about that artefact
$configdata = $this->get('configdata');
if (!empty($configdata['artefactid'])) {
// @TODO: Remove this hack soon, once plan artefact has render_self.
if (!empty($configdata['artefactid']) && $this->get('blocktype') != 'plans') {
$smarty->assign('viewartefacturl', get_config('wwwroot') . 'view/artefact.php?artefact='
. $configdata['artefactid'] . '&view=' . $this->get('view'));
}
......
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