#36537: Generate unique IDs for the OSM layer mapwidget options `json_script` tags
-------------------------------------+-------------------------------------
Reporter: Matthias Kestenholz | Owner: Matthias
| Kestenholz
Type: Bug | Status: closed
Component: GIS | Version: dev
Severity: Release blocker | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by nessita <124304+nessita@…>):
* resolution: => fixed
* status: assigned => closed
Comment:
In [changeset:"0a262c8407a2f4e4971118ca435c6931c40b70ae" 0a262c84]:
{{{#!CommitTicketReference repository=""
revision="0a262c8407a2f4e4971118ca435c6931c40b70ae"
Fixed #36537 -- Ensured unique HTML IDs for geometry widget option scripts
in the admin.
This work amends the code from f2f6046c0f92ff1faed057da0711ac478eef439c
where multiple geometry widgets rendered `<script>` elements in the
admin with the same HTML `id`, resulting in invalid HTML and fragile
JavaScript selectors. Refs #25706.
This change uses the widget's textarea ID to generate a unique `id` for
each JSON options `<script>`, ensuring valid and robust markup.
Co-authored-by: Natalia <
124304+...@users.noreply.github.com>
}}}
--
Ticket URL: <
https://code.djangoproject.com/ticket/36537#comment:5>