Fixed double call of executeAction()
authorMarcel Werk <burntime@woltlab.com>
Tue, 18 Aug 2020 13:39:11 +0000 (15:39 +0200)
committerMarcel Werk <burntime@woltlab.com>
Tue, 18 Aug 2020 13:39:11 +0000 (15:39 +0200)
wcfsetup/install/files/lib/acp/form/ContactOptionAddForm.class.php

index b1ec92671aab3c2ada8c5c5f53283343faa6b416..867254ca80862c0d6fb4c2ded10530599b047467 100644 (file)
@@ -71,7 +71,7 @@ class ContactOptionAddForm extends AbstractCustomOptionForm {
                parent::save();
                
                WCF::getTPL()->assign([
-                       'objectEditLink' => LinkHandler::getInstance()->getControllerLink(ContactOptionEditForm::class, ['id' => $this->objectAction->executeAction()['returnValues']->getObjectID()]),
+                       'objectEditLink' => LinkHandler::getInstance()->getControllerLink(ContactOptionEditForm::class, ['id' => $this->objectAction->getReturnValues()['returnValues']->getObjectID()]),
                ]);
        }
 }