- Merge request !11Issue #3246687: Prevents other submit handlers from working, such as media entity file replace ā (Merged) created by prudloff
- šØš¦Canada teknocat
Yes I agree there is no reason for this module to wipe out all the submit handlers just to be able to do it's thing. @prudloff's solution looks great. I don't think I would have thought of that.
@prudloff can you change the name of _media_library_edit_media_edit_save() since it no longer saves?
Looking for an RTBC and then can merge.
- Status changed to Needs work
about 1 year ago 6:46pm 31 January 2024 - Assigned to dhruv.mittal
- š®š³India divyansh.gupta Jaipur
Since there is a unresolved thread moving it to Needs Work, Please resolve the thread.
- š®š³India divyansh.gupta Jaipur
I have reviewed and tested the latest patch in !11.
ā The #submit callback is no longer being unset, allowing other submit handlers (such as from Media Entity File Replace) to function correctly.
ā The function name update issue has been resolved, and $form['actions']['submit']['#ajax']['callback'] now correctly references the updated function.
ā The form submission process works as expected, and the modal closes properly after submission.Everything looks good, and I don't see any regressions or issues. Moving this to RTBC.
- šØš¦Canada hargurpreet Kitchener
I also encountered an issue while replacing a file in the modal, but this patch resolved it.
-
ahebrank ā
committed 98479951 on 8.x-2.x authored by
prudloff ā
Issue #3246687 by dhruv.mittal, prudloff: Don't unset the #submit...
-
ahebrank ā
committed 98479951 on 8.x-2.x authored by
prudloff ā
That MR was targeted at 8.x-2.x so that's where it landed. So we'll need another one for 3.x, if it's intended to apply there.