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

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())) {
// remove from index queue
if (ExtensionManagementUtility::isLoaded('solr')) {
$indexQueue = GeneralUtility::makeInstance(Queue::class);
$indexQueue->deleteItem('tx_terfe2_domain_model_extension', $extension->getUid());
$this->translate('registerkey.deleted', array($extension->getExtKey())),
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