#975 closed defect (fixed)
ManyToMany field in raw_id_admin mode - broken (javascript)
Reported by: | moraha | Owned by: | Adrian Holovaty |
---|---|---|---|
Component: | contrib.admin | Version: | |
Severity: | critical | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
- function dismissRelatedLookupPopup(win, chosenId)
expects elem.className.indexOf('vCommaSeparatedIntegerField')
but element no has 'vRawIdAdminField' class
so, it's impossible to choose 'coma separated values' - only 1 id like foreign key
- The values of ManyToMany fields are looks like ['1','2','3'] 8-/ i don't have an idea from where this defect, coz contrib/admin are very rewrited
Note:
See TracTickets
for help on using tickets.
(In [1580]) Fixed #975 -- JavaScript shortcut in raw_id_admin for ManyToManyFields no longer replaces existing values.