﻿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
7278	problem using two manytomany field objects in a change_form.html (when using filter_horizontal = ('field1','field2')	martin.harrison@…	nobody	"This is an issue that I have spotted - hope you can help.

The bug seems to occur when I have two (or more I presume) manytomantfield objects in a table.

If I use the admin forms to add a row to this table it works perfectly well. However, if I choose in the admin/ModelAdmin options to state that the 2 manytomany fields should be filter_horizontal then this causes the problems.

In the admin form for this table it appears that I can select two rows from the left hand side box and transfer them accross to the right hand side (RHS). I can do this for both manytomanyfield objects.

If I do this for both filter_horizontal manytomany fields and save, it works fine. If, however, I go back into the form (to modify) and select another row from only one of the manytomany fields and send across to RHS - the javascript opens up this box to its full size (rather than a drop down). However, the other manytomany field object is still in a dropdown format for the RHS (clicking on the dropdown shows both values previously saved).

If I then save these changes this is where the problem occurs. It appears that the manytomanyfield where it still had the dropdown has only saved 1 of the 2 values. The manytomanyfield where the RHS was expanded to its full size due to the addition of an extra value is saved successfully.

Is this something specific to the javascript associated with the filter_horizontal option?

Regards,

Martin"		closed	contrib.admin	newforms-admin		worksforme	nfa-someday		Unreviewed	0	0	0	0	0	0
