﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
31597	"New ""Clear all filters"" shown always in raw_id_fields popup"	frnhr	nobody	"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` and `ModelB`
     * create a Foreign key field on `ModelA` pointing to `ModelB`
     * create a boolean field on `ModelB`

 * create an admin page for `ModelA`
     * add the FK field to `raw_id_fields` list

 * create an admin page for `ModelB`
     * add the boolean field to `list_filter` list

 * open the admin page in a browser
 * click on the ""magnifying class"" icon for the `ModelB` field

 * expected:
    * no `X Clear all filters` link

 * actual:
    * yes `X Clear all filters` link


Additionally, clicking the link removes `_to_field` query param, which it should not do (`_popup` param is correctly preserved).

[[Image(clearallfiltersrawidfields.png)]]
"	Uncategorized	new	contrib.admin	master	Normal				Unreviewed	0	0	0	0	0	1
