Commit 174fb96e authored by Thomas Löffler's avatar Thomas Löffler

Do not remove extension when last version was removed

parent ebb05570
Pipeline #2020 passed with stages
in 1 minute and 25 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