Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
services
t3o sites
extensions.typo3.org
extensions.typo3.org
Commits
f212542f
Commit
f212542f
authored
Apr 19, 2018
by
Thomas Löffler
Browse files
Remove extension from solr if deleted
parent
497002ca
Pipeline
#4241
passed with stages
in 5 minutes and 28 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
html/typo3conf/ext/ter_fe2/Classes/Controller/RegisterkeyController.php
View file @
f212542f
...
...
@@ -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
())),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment