-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Explicitly cast types in CRUDController::batchAction() #6529
Conversation
fdbefd3
to
0fbc614
Compare
@@ -3644,6 +3644,114 @@ public function testBatchActionWithConfirmation(): void | |||
$this->assertSame('@SonataAdmin/CRUD/batch_confirmation.html.twig', $this->template); | |||
} | |||
|
|||
/** | |||
* NEXT_MAJOR: Remove this legacy group. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure why the legacy group is here. Is there any instruction that will be resolved in the next major about these changes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These two tests are copy/paste of CRUDControllerTest::testBatchActionWithConfirmation()
.
22ad091
to
bde79c0
Compare
Any news? |
CI is stuck. Can you please rebase, so we can merge this |
add tests comment idx in tests use data provider in tests
bde79c0
to
6099166
Compare
@core23 It's done. PR is ready for marge. |
Thanks @peter-gribanov! |
Subject
This PR corrects several issues at once.
No
data.all_elements
in tplError in
SonataAdminBundle:CRUD:batch_confirmation.html.twig
The problem is due to the fact that the
all_elements
is a checkbox and if it is not checked, then it will not be in the HTTP request.Form Data:
Undefined index: all_elements
For the same reason, the
all_elements
will be absent in the data after confirming the action.Form Data:
TypeError
If you select apply to all elements, the
ids
is missing from the data.Form Data:
Changelog