Commit f212542f authored by Thomas Löffler's avatar Thomas Löffler

Remove extension from solr if deleted

parent 497002ca
Pipeline #4241 passed with stages
in 5 minutes and 28 seconds
......@@ -226,6 +226,11 @@ class RegisterkeyController extends \T3o\TerFe2\Controller\AbstractTerBasedContr
// Deleted in ter, then delete the key in the ter_fe2 extension table
if ($this->terConnection->deleteExtensionKey($extension->getExtKey())) {
$this->extensionRepository->remove($extension);
// remove from index queue
if (ExtensionManagementUtility::isLoaded('solr')) {
$indexQueue = GeneralUtility::makeInstance(Queue::class);
$indexQueue->deleteItem('tx_terfe2_domain_model_extension', $extension->getUid());
}
$this->addFlashMessage(
'',
$this->translate('registerkey.deleted', array($extension->getExtKey())),
......
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