1
0
mirror of https://github.com/django/django.git synced 2025-05-10 17:06:29 +00:00
django/js_tests
nessita 614be94957 [5.2.x] Fixed #36284, Refs #31170 -- Ensured related lookup popups are closed properly.
In the admin, when selecting related objects via the helpers defined in
`RelatedObjectLookups.js`, the `dismissRelatedLookupPopup` function was
attempting to access `window.relatedWindows`, which does not exist in
real execution, causing related lookup popups to remain open.

This change ensures that this code correctly accesses the module-local
`relatedWindows` by explicitly assigning it to `window.relatedWindows`.

Regression in 91bebf1adb43561b54bac18e76224759dc70acb3.

Thanks Matthias Kestenholz for the report, the fix ideas, and testing.

Co-authored-by: Matthias Kestenholz <mk@feinheit.ch>

Backport of a245604277eb9edeba234dacf199890766462709 from main.
2025-04-01 13:55:05 -03:00
..
2022-12-29 08:30:30 +01:00