Commit 48ccb46b authored by Aaron Wells's avatar Aaron Wells Committed by Gerrit Code Review
Browse files

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

parents a61c66ed e7779d20
...@@ -312,12 +312,13 @@ class PluginExportLeap extends PluginExport { ...@@ -312,12 +312,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) {
...@@ -334,6 +335,13 @@ class PluginExportLeap extends PluginExport { ...@@ -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 // Artefacts directly in views
$records = get_records_select_array( $records = get_records_select_array(
'view_artefact', 'view_artefact',
......
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