Commit 704ad8c0 authored by Jens Jacobsen's avatar Jens Jacobsen

Merge branch 'do-not-remove-extension-when-last-version-removed' into 'develop'

Do not remove extension when last version was removed

See merge request !154
parents ebb05570 174fb96e
Pipeline #2021 passed with stages
in 2 minutes and 16 seconds
......@@ -442,7 +442,6 @@ class RegisterkeyController extends \T3o\TerFe2\Controller\AbstractTerBasedContr
$version->getExtension()->removeVersion($version);
$this->versionRepository->remove($version);
if ($version->getExtension()->getLastVersion() === NULL) {
$this->extensionRepository->remove($version->getExtension());
$redirectToIndexAction = TRUE;
}
$this->addFlashMessage(
......
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