Commit ca583b9f 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 5cadaa45
...@@ -306,12 +306,13 @@ class PluginExportLeap extends PluginExport { ...@@ -306,12 +306,13 @@ class PluginExportLeap extends PluginExport {
// Some links can be determined in advance // Some links can be determined in advance
private function setup_links() { 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; return;
} }
$viewlist = join(',', array_keys($this->views)); $viewlist = join(',', array_keys($this->views));
$artefactlist = join(',', array_keys($this->artefacts));
// Views in collections // Views in collections
if ($this->collections) { if ($this->collections) {
...@@ -328,6 +329,13 @@ class PluginExportLeap extends PluginExport { ...@@ -328,6 +329,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 // Artefacts directly in views
$records = get_records_select_array( $records = get_records_select_array(
'view_artefact', '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