- π«π·France Fabsgugu
Hello,
The patch is not working properly.
When I want to select a media at the second level, it closes the popin of the first level media, without saving the change. - π©πͺGermany marcoliver Neuss, NRW, Germany
We also encountered this issue recently. We have some instances of nested media (e.g. an Image media referenced inside of a Contact media, referenced on a page node), all showing the edit button in the Media Widget.
Once I'm down the the second level of media inside the modal (showing the Media Library to select a new Image), the AJAX request suddenly no longer receives JSON as a response, but HTML, causing an AjaxError.
Sadly, as @fabsgugu stated, the patch at #5 π Ajax callback runs for each form in case "media_library_edit=ajax" in URL Needs work just closes the modal without anything being saved.
Maybe someone with more mileage on this project can chime in here, but it seems to me that once we're down to the Media Library level, the response for that widget will always contain a CloseDialogCommand and thus close the modal on us?