Commit ff3a7d7
committed
bug #7465 Ease upgrade to EasyAdmin 5.x by supporting entity IDs in query params (javiereguiluz)
This PR was squashed before being merged into the 5.x branch.
Discussion
----------
Ease upgrade to EasyAdmin 5.x by supporting entity IDs in query params
As reported by a user on Symfony Slack, if a custom action of yours doesn't include the `entityId` as a route palceholder, the generated URL will include that as a query param. In 4.x that works but in 5.x it doesn't because it always expects the entit yID to be part of the route attributes.
We partially support entity IDs in query params in 5.x branch, but this PR ensures we support it in the other missing places.
Commits
-------
b158d7d Ease upgrade to EasyAdmin 5.x by supporting entity IDs in query params2 files changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
| 195 | + | |
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
| |||
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
264 | | - | |
| 264 | + | |
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
| |||
0 commit comments