#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 <[email protected]>
 }}}
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36537#comment:5>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/django-updates/010701987aa85482-ea6b035d-07ce-4785-8373-d4cf466b4bd9-000000%40eu-central-1.amazonses.com.

Reply via email to