Commit 77f7651b authored by Thomas Löffler's avatar Thomas Löffler

Update extension in repository to start solr reindexing

parent f031d8a7
Pipeline #2163 passed with stages
in 1 minute and 26 seconds
......@@ -44,6 +44,7 @@ class ReviewController extends \T3o\TerFe2\Controller\AbstractTerBasedController
$versions = $extension->getVersions();
$versionChanged = false;
$versionRepository = $this->objectManager->get(\T3o\TerFe2\Domain\Repository\VersionRepository::class);
$extensionRepository = $this->objectManager->get(\T3o\TerFe2\Domain\Repository\ExtensionRepository::class);
foreach ($versions as $version) {
/** @var \T3o\TerFe2\Domain\Model\Version $version */
......@@ -61,6 +62,7 @@ class ReviewController extends \T3o\TerFe2\Controller\AbstractTerBasedController
$version->setReviewState($reviewState);
$versionChanged = true;
$versionRepository->update($version);
$extensionRepository->update($extension);
} else {
$message = $this->translate('msg.reviewstate_not_enabled', [$version->getVersionString(), $error]);
$this->redirectWithMessage($message, 'show', '', \TYPO3\CMS\Core\Messaging\FlashMessage::ERROR, 'Extension', NULL, $actionParameters);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment