Commit c51a7213 authored by Nigel McNie's avatar Nigel McNie

Add a comment explaining why a certain warning might appear during leap2a import.

Signed-off-by: default avatarNigel McNie <nigel@catalyst.net.nz>
parent 4b171026
......@@ -786,6 +786,8 @@ class PluginImportLeap extends PluginImport {
$artefacts = $this->get_artefactids_imported_by_entryid('portfolio:artefact' . $matches[4]);
if (is_null($artefacts) || count($artefacts) != 1) {
// This can happen if a leap2a xml file is uploaded that refers to
// files that (naturally) weren't uploaded with it.
log_debug("Warning: fixref was expecting one artefact to have been imported by entry portfolio:artefact{$matches[4]} but seems to have gotten " . count($artefacts));
return $matches[0];
}
......
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