Skip to content

Commit

Permalink
Merge branch 'release-45.2.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Apr 7, 2023
2 parents 2d42c96 + 86e2161 commit cb92109
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions models/classes/class.QtiTestService.php
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,6 @@ protected function importTest(core_kernel_classes_Class $targetClass, Resource $
$reportCtx = new stdClass();
$reportCtx->manifestResource = $qtiTestResource;
$reportCtx->rdfsResource = $testResource;
$reportCtx->itemClass = $targetClass;
$reportCtx->items = [];
$reportCtx->newItems = [];
$reportCtx->overwrittenItems = [];
Expand All @@ -549,8 +548,6 @@ protected function importTest(core_kernel_classes_Class $targetClass, Resource $
// 'uriResource' key is needed by javascript in tao/views/templates/form/import.tpl
$reportCtx->uriResource = $testResource->getUri();

$report->setData($reportCtx);

// Expected test.xml file location.
$expectedTestFile = $folder . str_replace('/', DIRECTORY_SEPARATOR, $qtiTestResource->getFile());

Expand Down Expand Up @@ -584,7 +581,7 @@ protected function importTest(core_kernel_classes_Class $targetClass, Resource $
}

$targetClass = $itemClass->createSubClass($testResource->getLabel());

$reportCtx->itemClass = $targetClass;
// -- Load all items related to test.
$itemError = false;

Expand Down Expand Up @@ -770,6 +767,8 @@ protected function importTest(core_kernel_classes_Class $targetClass, Resource $
}
}

$report->setData($reportCtx);

if ($report->containsError() === false) {
$report->setType(common_report_Report::TYPE_SUCCESS);
$msg = __("IMS QTI Test referenced as \"%s\" in the IMS Manifest file successfully imported.", $qtiTestResource->getIdentifier());
Expand Down
2 changes: 1 addition & 1 deletion views/js/loader/taoQtiTestXMLEditor.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion views/js/loader/taoQtiTestXMLEditor.min.js.map

Large diffs are not rendered by default.

0 comments on commit cb92109

Please sign in to comment.