Commit 4f5d948e authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Fix leap namespaces for plan artefacts


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent bca5c8f2
{include file="export:leap:entry.tpl" skipfooter=true}
{if $completion} <leap:status leap:stage="{$completion}" />{/if}
{if $completion} <leap2:status leap2:stage="{$completion}" />{/if}
{include file="export:leap:entryfooter.tpl"}
......@@ -157,7 +157,8 @@ class LeapImportPlans extends LeapImportArtefactPlugin {
}
$artefact->set('completiondate', empty($completiondate) ? $artefact->get('mtime') : $completiondate);
if ($entry->xpath('leap:status[@leap:stage="completed"]')) {
$ns = $importer->get_leap2a_namespace();
if ($entry->xpath($ns . ':status[@' . $ns . ':stage="completed"]')) {
$artefact->set('completed', 1);
}
}
......
......@@ -15,7 +15,7 @@
{include file="export:leap:links.tpl"}
{include file="export:leap:categories.tpl"}
{foreach from=$dates item=date}
<leap:date leap:point="{$date.point}"{if $date.label} leap:label="{$date.label}"{/if}>{$date.date}</leap:date>
<leap2:date leap2:point="{$date.point}"{if $date.label} leap2:label="{$date.label}"{/if}>{$date.date}</leap2:date>
{/foreach}
{if !$skipfooter}
{include file="export:leap:entryfooter.tpl"}
......
Supports Markdown
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