refactor: [WIP] Improve form building.

Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
Rubén D
2022-06-11 08:53:50 +02:00
parent 1bc977dfc8
commit 54bedda0b2
31 changed files with 63 additions and 49 deletions

View File

@@ -73,7 +73,7 @@ final class SaveCreateController extends AccountControllerBase
public function saveCreateAction(): ?bool
{
try {
$this->accountForm->validate(ActionsInterface::ACCOUNT_CREATE);
$this->accountForm->validateFor(ActionsInterface::ACCOUNT_CREATE);
$accountId = $this->accountService->create($this->accountForm->getItemData());