Skip to content

Commit

Permalink
fix: Connect test import form
Browse files Browse the repository at this point in the history
  • Loading branch information
bartlomiejmarszal committed May 7, 2024
1 parent 16ee3c9 commit cd9a9a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions models/classes/class.QtiTestService.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
use oat\tao\model\resources\SecureResourceServiceInterface;
use oat\tao\model\TaoOntology;
use oat\taoItems\model\Command\DeleteItemCommand;
use oat\taoQtiItem\model\import\QtiPackageImport;
use oat\taoQtiItem\model\qti\ImportService;
use oat\taoQtiItem\model\qti\metadata\importer\MetadataImporter;
use oat\taoQtiItem\model\qti\metadata\imsManifest\MetaMetadataExtractor;
Expand Down Expand Up @@ -56,6 +55,7 @@
use qtism\data\storage\xml\XmlStorageException;
use taoTests_models_classes_TestsService as TestService;
use oat\oatbox\reporting\Report;
use taoQtiTest_models_classes_import_TestImportForm as TestImportForm;

/**
* the QTI TestModel service.
Expand Down Expand Up @@ -425,7 +425,7 @@ public function importMultipleTests(
$alreadyImportedQtiResources,
$overwriteTest,
$itemClassUri,
$form[QtiPackageImport::METADATA_IMPORT_ELEMENT_NAME] ?? false
!empty($form[TestImportForm::METADATA_FORM_ELEMENT_NAME]) ?? false
);
$report->add($importTestReport);

Expand Down
2 changes: 1 addition & 1 deletion models/classes/import/class.TestImportForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
*/
class taoQtiTest_models_classes_import_TestImportForm extends tao_helpers_form_FormContainer
{
private const METADATA_FORM_ELEMENT_NAME = 'metadata';
public const METADATA_FORM_ELEMENT_NAME = 'metadata';

/**
* (non-PHPdoc)
Expand Down

0 comments on commit cd9a9a1

Please sign in to comment.