Closed (fixed)
Project:
Weight
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Sep 2010 at 17:33 UTC
Updated:
23 Jan 2012 at 02:20 UTC
If a view holds more than 1 “Weight Changer” widget (in different displays), and if a page tries to show them simultaneously:
$formid (based on $view->name); typically all submissions will be forwarded to the first Weight Changer;ids are the same; typically only the first Weight Changer gets a functional tabledrag feature.This patch fixes both problems:
$view->current_display is added to the $id; that fixes the tabledrag problem;$id is added to the $formid, to get a distinct $formid per form. As this breaks the hook_form call, a hook_forms handler is added to redirect all internal form calls to the weight_view_weight_form function;$formid name breaks the theming as well, we force use of our own theme with the #theme key in the $form.
Hopefully this report is clear enough for at least the maintainer!
| Comment | File | Size | Author |
|---|---|---|---|
| weight-changer-multiple.patch | 1.41 KB | ptaff |
Comments
Comment #1
davisbenCommitted to 6.x-1.x.