Commit 9dfd616
committed
Guard edit button script against missing edit route in ModelListType
When a ModelListType field points to an admin whose edit route was removed in
configureRoutes(), the edit_many_script template still generated the edit URL
because it was guarded by btn_edit only, throwing "unable to find the route"
while rendering the form. Align the guards with the visible button in
form_admin_fields.html.twig (hasroute('edit') and hasAccess('edit') and btn_edit).1 parent f8b0965 commit 9dfd616
1 file changed
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
560 | 560 | | |
561 | 561 | | |
562 | 562 | | |
563 | | - | |
| 563 | + | |
564 | 564 | | |
565 | 565 | | |
566 | 566 | | |
| |||
587 | 587 | | |
588 | 588 | | |
589 | 589 | | |
590 | | - | |
| 590 | + | |
591 | 591 | | |
592 | 592 | | |
593 | 593 | | |
| |||
0 commit comments