Skip to content

Commit

Permalink
fix: add Resource Created to trigger taoAdvanceSearch index update (#…
Browse files Browse the repository at this point in the history
…2399) (#2401)

(cherry picked from commit 3286ae4)
  • Loading branch information
Karol-Stelmaczonek authored Sep 5, 2023
1 parent af902d4 commit 16e5c78
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions models/classes/class.QtiTestService.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
*/

use League\Flysystem\FileExistsException;
use oat\generis\model\data\event\ResourceCreated;
use oat\oatbox\filesystem\Directory;
use oat\oatbox\filesystem\File;
use oat\oatbox\filesystem\FileSystemService;
Expand Down Expand Up @@ -853,6 +854,7 @@ protected function importTest(
$msg = __("IMS QTI Test referenced as \"%s\" in the IMS Manifest file successfully imported.", $qtiTestResource->getIdentifier());
// phpcs:enable Generic.Files.LineLength
$report->setMessage($msg);
$this->getEventManager()->trigger(new ResourceCreated($testResource));
} else {
$report->setType(common_report_Report::TYPE_ERROR);
// phpcs:disable Generic.Files.LineLength
Expand Down

0 comments on commit 16e5c78

Please sign in to comment.