#31597 closed Bug (fixed)
"Clear all filters" link removes TO_FIELD_VAR and is always displayed in raw_id_fields popup.
Reported by: | frnhr | Owned by: | frnhr |
---|---|---|---|
Component: | contrib.admin | Version: | 3.1 |
Severity: | Release blocker | Keywords: | |
Cc: | frnhr | Triage Stage: | Ready for checkin |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | yes |
Description (last modified by )
The new "Clear all filters" link does not play nice with raw_id_fields
lookup popup window. The new link is shown in the popup regardless of any filters being selected or not.
Present in 3.1a1
.
To reproduce:
- create two models,
ModelA
andModelB
- create a Foreign key field on
ModelA
pointing toModelB
- create a boolean field on
ModelB
- create a Foreign key field on
- create an admin page for
ModelA
- add the FK field to
raw_id_fields
list
- add the FK field to
- create an admin page for
ModelB
- add the boolean field to
list_filter
list
- add the boolean field to
- open the admin page in a browser
- click on the "magnifying class" icon for the
ModelB
field
- expected:
- no
X Clear all filters
link
- no
- actual:
- yes
X Clear all filters
link
- yes
Additionally, clicking the link removes _to_field
query param, which it should not do (_popup
param is correctly preserved).
Attachments (1)
Change History (10)
by , 5 years ago
Attachment: | clearallfiltersrawidfields.jpg added |
---|
comment:1 by , 5 years ago
Description: | modified (diff) |
---|
comment:2 by , 5 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:3 by , 5 years ago
Cc: | added |
---|---|
Has patch: | set |
Type: | Uncategorized → Bug |
Version: | master → 3.1 |
comment:4 by , 5 years ago
Cc: | added |
---|---|
Severity: | Normal → Release blocker |
Summary: | New "Clear all filters" shown always in raw_id_fields popup → "Clear all filters" link removes TO_FIELD_VAR and is always displayed in raw_id_fields popup. |
Triage Stage: | Unreviewed → Accepted |
Thanks.
Clearing "Search" also removes "_to_field", so we should fix this as well (in a separate commit/PR).
comment:5 by , 5 years ago
Cc: | removed |
---|
comment:7 by , 5 years ago
Triage Stage: | Accepted → Ready for checkin |
---|
Note:
See TracTickets
for help on using tickets.
PR