- Issue created by @hosisam
- π³π±Netherlands Dries Arnolds π³π± Amsterdam
I have the same issue with the combination of Gin and Media Library Edit, since the upgrade to 3.11
Changing the Twig template also fixes it for me. Does this have anything to do with the new sticky buttons functionality destined for 4.x?
- π§πͺBelgium bramvandenbulcke
Same here!
This regressions started with Gin release 8.x-3.0-rc11.
- πΊπΈUnited States cbwiedel
Can confirm Gin is not rendering the bottom of the edit modal, more specifically the 'ui-dialog-buttonpane' at the bottom. I'm using the media_library_media_modify module
- First commit to issue fork.
- π¦πΉAustria hudri Austria
My merge requests assumes that Gin content forms should never be used for Ajax requests, because forms in Ajax requests don't render the page template or the local actions block. This fixes it for the media library edit button, and theoretically this should also prevent similar problems with modules like Inline Entity Forms.
My assumption is a fairly broad approch, so feedback is welcome.
- Status changed to Needs review
5 months ago 7:43am 20 June 2024 - π΅π±Poland besek
Thank you @hundri! I've verified your fix and it works very well!
- Status changed to Active
5 months ago 8:00am 20 June 2024 - π¨πSwitzerland saschaeggi Zurich
@hudri thank you for the MR π
I left you a question π
- Status changed to Needs review
5 months ago 8:29am 20 June 2024 - π¨πSwitzerland saschaeggi Zurich
@hudri sounds good π
Waiting for another round of re-reviews to confirm it's still working properly, afterwards we can merge this ASAP and issue a new release π
- π¦πΉAustria hudri Austria
Tests from Drupal commerce users would be helpful, this would cross-check compatiblity with Inline Entity Form module.
- π΅π±Poland besek
I didn't check with Inline Entity Form, but just in case I tested compatibility with other modules, where it could potentially impact behaviour:
- Views Bulk Operations
- Views Entity Form Field
- Dashboards with Layout Builder
All of them seems to be working fine, with or without this patch :) - π«π·France duaelfr Montpellier, France
Here is the patch for people wanting to apply it directly on RC11.
I can confirm it fixes the issue for the media edit modal introduced by the Core patch here β¨ Allow media items to be edited in a modal when using the field widget Postponed - π΅π±Poland besek
@DuaelFr, there are small differences between your patch and what is in mr. Can you please clarify them? I'm wondering what is the goaald and which one should be used for patching RC11 on my website
- π«π·France duaelfr Montpellier, France
@besek MR's patch is against 3.x-dev so it does not apply on rc11. This patch is a workaround for people who need this change but cannot wait for the next release and/or cannot switch to the development version of the theme.
- π΅π±Poland besek
Ok, thanks for clarification and the patch. I was testing mr on rc11 and it worked fine, so I thought this would be enough to use it as a patch.
- π§πͺBelgium davidiio
We applied patch from #18 and media library edit modal now diaplays save button.
Tried it on Drupal 10.3, gin 3.x-rc11 and media_library_edit 3.0.3 - Status changed to RTBC
5 months ago 1:58pm 24 June 2024 - Status changed to Fixed
5 months ago 2:05pm 24 June 2024 - π¨πSwitzerland saschaeggi Zurich
Thanks! I've also ported this to the
4.0.x
branch - π©πͺGermany Anybody Porta Westfalica
Thank you very much for fixing this! :) I was looking for the reason and finally found it here.
Is a new -rc12 release planned soon? Looks like several issues were recently fixed in -dev. Or should we use the patch? - π©πͺGermany Anybody Porta Westfalica
Thank you very very much @saschaeggi! :)
Automatically closed - issue fixed for 2 weeks with no activity.
- π·π΄Romania Stefan Vaduva
Sorry to reopen this, but it seems that it does not fix the problem for the Entity Browser Modal
I'm seeing the same issue in views - cannot change settings unless I right click, open in new tab (ie no modal)
- π©πͺGermany bekro Mannheim
I'm also experiencing this issue in version rc13 (D10.3.1). Using the media_library_media_modify module. It seems to work with media fields in paragraphs but not in media fields directly in nodes. Patch in #29 fixed it and works for me.
- π©πͺGermany Anybody Porta Westfalica
@saschaeggi then *ping* for reopening?
- π¨πSwitzerland saschaeggi Zurich
No need to reopen this, see the related open issues/MRs which need a review instead.
- π¬π§United Kingdom Jons
I encountered this ( https://www.drupal.org/project/drupal/issues/3477114 π .ui-dialog-buttonpane missing on media select dialog Active )
If 'Enable sticky action buttons' is on (gin.settings.yml: sticky_action_buttons: true) the buttons don't appear in various places - Views admin etc. Disabling makes them work again.
I'm on 3.0.0-rc13
If I set sticky on again and apply #29 (and clear cache) then go to edit a node with a media field, the buttons appear on the initial ('Add or select media') dialog, but disappear if you select a different directory and click Apply filters.
- πΊπΈUnited States jnicola
This is not fixed for us with latest in 3.x dev branch.
Linked tickets also seem to be closed for duplicate, or the one core issue just trails off with folks pointing to this project (gin).
What is the actual solution for folks using 3.x? Given how many people have come back here and mentioned it is still not working this does not seem to be marked appropriately as fixed.
- πΊπΈUnited States ccjjmartin Austin, TX
Can confirm that #29 fixed the issue for me.
- πΊπΈUnited States kevinfunk
+1 that the patch from #29 fixes the issue.
I was seeing the issue using the Acquia DAM module and it happened when DAM was selected when the modal was opened.