Commit e7779d20 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
parent 3e806118
......@@ -312,12 +312,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) {
......@@ -334,6 +335,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',
......
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