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

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 ...@@ -44,6 +44,7 @@ class ReviewController extends \T3o\TerFe2\Controller\AbstractTerBasedController
$versions = $extension->getVersions(); $versions = $extension->getVersions();
$versionChanged = false; $versionChanged = false;
$versionRepository = $this->objectManager->get(\T3o\TerFe2\Domain\Repository\VersionRepository::class); $versionRepository = $this->objectManager->get(\T3o\TerFe2\Domain\Repository\VersionRepository::class);
$extensionRepository = $this->objectManager->get(\T3o\TerFe2\Domain\Repository\ExtensionRepository::class);
foreach ($versions as $version) { foreach ($versions as $version) {
/** @var \T3o\TerFe2\Domain\Model\Version $version */ /** @var \T3o\TerFe2\Domain\Model\Version $version */
...@@ -61,6 +62,7 @@ class ReviewController extends \T3o\TerFe2\Controller\AbstractTerBasedController ...@@ -61,6 +62,7 @@ class ReviewController extends \T3o\TerFe2\Controller\AbstractTerBasedController
$version->setReviewState($reviewState); $version->setReviewState($reviewState);
$versionChanged = true; $versionChanged = true;
$versionRepository->update($version); $versionRepository->update($version);
$extensionRepository->update($extension);
} else { } else {
$message = $this->translate('msg.reviewstate_not_enabled', [$version->getVersionString(), $error]); $message = $this->translate('msg.reviewstate_not_enabled', [$version->getVersionString(), $error]);
$this->redirectWithMessage($message, 'show', '', \TYPO3\CMS\Core\Messaging\FlashMessage::ERROR, 'Extension', NULL, $actionParameters); $this->redirectWithMessage($message, 'show', '', \TYPO3\CMS\Core\Messaging\FlashMessage::ERROR, 'Extension', NULL, $actionParameters);
......
Supports Markdown
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