diff --git a/models/classes/class.QtiTestService.php b/models/classes/class.QtiTestService.php index 302ebebb6..869a87093 100644 --- a/models/classes/class.QtiTestService.php +++ b/models/classes/class.QtiTestService.php @@ -813,7 +813,6 @@ protected function importTest( // 4. Import metadata for the resource (use same mechanics as item resources). // Metadata will be set as property values. - $this->getMetadataImporter()->inject($qtiTestResource->getIdentifier(), $testResource); //todo: fix taoSetup to be aware of containers. This is only workaround. if ( $this->getServiceManager()->getContainer()->has(MappedMetadataInjector::class) diff --git a/models/classes/export/AbstractQtiTestExporter.php b/models/classes/export/AbstractQtiTestExporter.php index e4fb74314..d2b53f484 100644 --- a/models/classes/export/AbstractQtiTestExporter.php +++ b/models/classes/export/AbstractQtiTestExporter.php @@ -178,7 +178,7 @@ public function export(array $options = []): Report $this->getMetadataExporter()->export($this->getItem(), $this->getManifest()); $this->genericLomOntologyExtractor()->extract( - array_merge([$this->getItem()], $this->getItems()), + [$this->getItem()], $this->getManifest() );