Opened 12 years ago
Closed 12 years ago
#19047 closed Bug (duplicate)
FilteredSelectMultiple gets cleared when using back button
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | contrib.admin | Version: | 1.4 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | yes |
Description
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.
Attachments (1)
Change History (2)
by , 12 years ago
Attachment: | 0001-Reload-the-FilteredSelectWidget-values-when-using-th.patch added |
---|
comment:1 by , 12 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Thanks for the report. This is essentially the same issue as #13614. This is a bug in Webkit which should have been fixed in the latest version. Please check out that other ticket for more information.
Patch for #19047