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

@@ -350,7 +350,7 @@ final class UserProfileController extends ControllerBase implements CrudControll
}
$form = new UserProfileForm($this->dic);
$form->validate(ActionsInterface::PROFILE_CREATE);
$form->validateFor(ActionsInterface::PROFILE_CREATE, null);
$profileData = $form->getItemData();
@@ -411,7 +411,7 @@ final class UserProfileController extends ControllerBase implements CrudControll
}
$form = new UserProfileForm($this->dic, $id);
$form->validate(ActionsInterface::PROFILE_EDIT);
$form->validateFor(ActionsInterface::PROFILE_EDIT, null);
$profileData = $form->getItemData();