﻿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
1404	[patch] admin m2m item-add popup broken when `filter_interface` is set	Tom Tobin <korpios@…>	Adrian Holovaty	"When `filter_interface` is set for a `ManyToManyField`, the admin popup for adding a new m2m item breaks upon saving the new item.  The item ''is'' added to the database; the breakage occurs when the `dismissAddAnotherPopup` function in `RelatedObjectLookups.js` tries to look for the related `select` element, only to fail to find it because the Javascript code for `filter_interface` alters the DOM to have two new elements with changed ids (ending in ""_from"" and ""_to"").

The attached patch alters `dismissAddAnotherPopup` to look for the select element's id, and fall back to looking for id + ""_to""; the latter will result in the function properly adding the new item via `SelectBox` calls.
"	defect	closed	contrib.admin		normal	fixed			Unreviewed	1	0	0	0	0	0
