Opened 14 years ago

Closed 14 years ago

#15498 closed (worksforme)

selectfilter broken when there are multiple in a admin

Reported by: p.vanderlinden@… Owned by: nobody
Component: contrib.admin Version: 1.2
Severity: Keywords: selectfilter
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

When there are multiple selectfilters (filter_horizontal/filter_vertical), on an admin page, the data isn't transmitted when you submit the form. All data in the Many2ManyField is deleted.

This bug depends on the browser:
Works correct in Firefox, works incorrect in Internet Explorer 8 & Opera 11.01.

As attachment I've added a quickly written jQuery plugin.

Attachments (1)

jquery.multiselectfilter.js (6.1 KB ) - added by p.vanderlinden@… 14 years ago.

Download all attachments as: .zip

Change History (2)

by p.vanderlinden@…, 14 years ago

Attachment: jquery.multiselectfilter.js added

comment:1 by Russell Keith-Magee, 14 years ago

Has patch: set
Resolution: worksforme
Status: newclosed

Two problems here:

  1. I can't reproduce the problem you describe. I just created a test project with two filter_horizontals, and it worked fine for me.
  2. Even if I *could* reproduce the problem, the fix isn't going to be a random block of standalone javascript -- it's going to be a patch against the existing javascript implementation of filter_horizontal/vertical.

However, the second point is moot given that you haven't provided enough detail to reproduce the problem you are seeing.

Note: See TracTickets for help on using tickets.
Back to Top