Skip to content

Commit

Permalink
Merge branch 'release-12.2.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Sep 25, 2023
2 parents b6221fc + 203ccec commit 5e54fca
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"require": {
"oat-sa/oatbox-extension-installer": "~1.1||dev-master",
"oat-sa/generis" : ">=15.22",
"oat-sa/tao-core" : ">=50.24.6",
"oat-sa/tao-core" : ">=53.7.1",
"oat-sa/extension-tao-item" : ">=11.0.0",
"oat-sa/extension-tao-delivery-rdf" : ">=14.0.0",
"oat-sa/extension-tao-delivery" : ">=15.0.0",
Expand Down
12 changes: 8 additions & 4 deletions model/search/ResultIndexIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
namespace oat\taoOutcomeUi\model\search;

use oat\tao\helpers\UserHelper;
use oat\tao\model\search\index\DocumentBuilder\IndexDocumentBuilderInterface;
use oat\tao\model\search\index\IndexDocument;
use oat\tao\model\search\index\IndexService;
use oat\taoDelivery\model\execution\DeliveryExecutionInterface;
use oat\taoDelivery\model\execution\ServiceProxy;
use oat\taoDelivery\model\execution\DeliveryExecution;
Expand Down Expand Up @@ -254,8 +254,12 @@ protected function createDocument(DeliveryExecution $execution)
'id' => $execution->getIdentifier(),
'body' => $body
];
/** @var IndexService $indexService */
$indexService = $this->getServiceLocator()->get(IndexService::SERVICE_ID);
return $indexService->createDocumentFromArray($document);

return $this->getIndexDocumentBuilder()->createDocumentFromArray($document);
}

private function getIndexDocumentBuilder(): IndexDocumentBuilderInterface
{
return $this->getServiceLocator()->getContainer()->get(IndexDocumentBuilderInterface::class);
}
}

0 comments on commit 5e54fca

Please sign in to comment.