Skip to content

Commit fb1d481

Browse files
committed
Add "User" validation group to be compatible with upcoming user-bundle release
1 parent 1aef603 commit fb1d481

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Action/ResetAction.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public function __invoke(Request $request, string $token): Response
120120
'action' => $this->router->generate('nucleos_user_admin_security_check', [
121121
'token' => $token,
122122
]),
123-
'validation_groups' => ['ResetPassword', 'Default'],
123+
'validation_groups' => ['ResetPassword', 'User', 'Default'],
124124
]);
125125

126126
$form->handleRequest($request);

src/Admin/Model/GroupAdmin.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ protected function createNewInstance(): object
4242

4343
protected function configureFormOptions(array &$formOptions): void
4444
{
45-
$formOptions['validation_groups'] = $this->isNewInstance() ? 'Registration' : 'Profile';
45+
$formOptions['validation_groups'] = ['Group', $this->isNewInstance() ? 'Registration' : 'Profile'];
4646
}
4747

4848
protected function configureListFields(ListMapper $list): void

src/Admin/Model/UserAdmin.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function preUpdate($object): void
5151

5252
protected function configureFormOptions(array &$formOptions): void
5353
{
54-
$formOptions['validation_groups'] = $this->isNewInstance() ? 'Registration' : 'Profile';
54+
$formOptions['validation_groups'] = ['User', $this->isNewInstance() ? 'Registration' : 'Profile'];
5555
}
5656

5757
protected function configureExportFields(): array

0 commit comments

Comments
 (0)