Commit 2ed64692 authored by Benni Mack's avatar Benni Mack
Browse files

[BUGFIX] Ensure extension key is only registered once

There is a bug in an extension key registration
that the key is added twice to the database now.

The change removes the manual Extbase addition to
keep restrictions equal to the SOAP API.
parent 1adbea4b
Pipeline #9284 passed with stages
in 9 minutes and 50 seconds
......@@ -112,12 +112,6 @@ class RegisterkeyController extends \T3o\TerFe2\Controller\AbstractTerBasedContr
// Register the extension key at ter server, if successfull, add it to the extension table
if ($this->terConnection->registerExtension($extensionData)) {
// Create extension model
$extension = $this->objectManager->get(\T3o\TerFe2\Domain\Model\Extension::class);
$extension->setExtKey($extensionKey);
$extension->setFrontendUser($this->frontendUser['username']);
$this->extensionRepository->add($extension);
$this->addFlashMessage(
'',
$this->translate('registerkey.key_registered'),
......
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