diff --git a/model/Export/QTIPackedItemExporter.php b/model/Export/QTIPackedItemExporter.php index 42ed6278cf..d64c90a4e0 100755 --- a/model/Export/QTIPackedItemExporter.php +++ b/model/Export/QTIPackedItemExporter.php @@ -199,11 +199,14 @@ public function exportManifest($options = [], $exportResult = []) } $manifest = $this->getManifest(); - $this->getMetadataExporter()->export($this->getItem(), $manifest); - $this->injectMetadataToManifest($manifest, $this->getItem()); - $this->setManifest($manifest); + //APIP does not support metadata at this moment + if (!isset($options['apip']) || (isset($options['apip']) && $options['apip'] !== true)) { + $this->getMetadataExporter()->export($this->getItem(), $manifest); + $this->injectMetadataToManifest($manifest, $this->getItem()); + } + $this->setManifest($manifest); // -- Overwrite manifest in the current ZIP archive. $zipArchive->addFromString('imsmanifest.xml', $this->getManifest()->saveXML()); } else {