Commit e0a9c65a authored by Aaron Wells's avatar Aaron Wells

Don't skip on setting up pages in leap2a, just because there no artefacts

Bug 1464477

Change-Id: I016d35f35406f4b1c7bcb298ae2966f1d37fed05
(cherry picked from commit e7779d20)
parent 3f83b670
......@@ -321,12 +321,13 @@ class PluginExportLeap extends PluginExport {
// Some links can be determined in advance
private function setup_links() {
if (empty($this->views) || empty($this->artefacts)) {
// If there are no pages, no links to set up.
if (empty($this->views)) {
return;
}
$viewlist = join(',', array_keys($this->views));
$artefactlist = join(',', array_keys($this->artefacts));
// Views in collections
if ($this->collections) {
......@@ -343,6 +344,13 @@ class PluginExportLeap extends PluginExport {
}
}
// If there are no artefacts, no need to try to set those up.
if (empty($this->artefacts)) {
return;
}
$artefactlist = join(',', array_keys($this->artefacts));
// Artefacts directly in views
$records = get_records_select_array(
'view_artefact',
......@@ -1154,4 +1162,4 @@ class LeapExportOutputFilter {
return $matches[0];
}
}
\ No newline at end of file
}
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