mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-03 15:14:08 +01:00
refactor: [WIP] Improve form building.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
@@ -428,7 +428,7 @@ final class NotificationController extends ControllerBase implements CrudControl
|
||||
}
|
||||
|
||||
$form = new NotificationForm($this->dic);
|
||||
$form->validate(ActionsInterface::NOTIFICATION_CREATE);
|
||||
$form->validateFor(ActionsInterface::NOTIFICATION_CREATE, null);
|
||||
|
||||
$this->notificationService->create($form->getItemData());
|
||||
|
||||
@@ -478,7 +478,7 @@ final class NotificationController extends ControllerBase implements CrudControl
|
||||
}
|
||||
|
||||
$form = new NotificationForm($this->dic, $id);
|
||||
$form->validate(ActionsInterface::NOTIFICATION_EDIT);
|
||||
$form->validateFor(ActionsInterface::NOTIFICATION_EDIT, null);
|
||||
|
||||
$this->notificationService->update($form->getItemData());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user