#19047: FilteredSelectMultiple gets cleared when using back button
-------------------------------+--------------------
Reporter: olofsj@… | Owner: nobody
Type: Bug | Status: new
Component: contrib.admin | Version: 1.4
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 1
Easy pickings: 0 | UI/UX: 1
-------------------------------+--------------------
In the admin all fields that use a FilteredSelectMultiple will be cleared
if the user leaves the page and then returns via the back button in the
browser.
The reason seems to be that the FilteredSelectMultiple widget removes all
selected items from the original select widget and moves them to another
select widget. This confuses the browser about which items were selected.
The attached patch works around this by setting all items that were
originally selected by default as selected. Then at least the widget gets
back to the state it had on initial page load, though any changes the user
may have done before leaving the page will not be kept so there's probably
a better way to solve it.
--
Ticket URL: <https://code.djangoproject.com/ticket/19047>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.