When AJAX enabled in Views2, hierarchial select in exposed filter brakes the filter's AHAH submit.
It is causing because HS get's hsid from the $element[#post][hsid] on processing the element. But while HSis the part of bigger form during exposed form submit, the $element[#post][hsid] have another structure and hsid gets wrong value.
To avoid this, we should store HSelect's hsid in hidden field, which will always be stored in $element[#values] in the right fasion.
Please, review the patch.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | pic1.png | 19.39 KB | braindrift |
| hierarchical_select.patch | 1.4 KB | neochief |
Comments
Comment #1
wim leersThanks!
Committed!
- D6: http://drupal.org/cvs?commit=265574
- D5: http://drupal.org/cvs?commit=265576
Comment #2
braindrift commentedHi,
sorry but after I applied this patch I got the box with the message:"You don't have Javascript enabled."
What am I doing wrong?
Comment #3
braindrift commentedThere goes something wrong after refreshing the node-creation form. When I try to create the node directly after login, there is no issue. But after refreshing the page I get this box.
To get this box away, I have to logout and login again. This indicates a problem with the session (the box appears if the hsid in the session is >0).
Comment #4
braindrift commentedPlease see this http://drupal.org/node/541132#comment-2066864
Comment #5
wim leersLet's continue in the other issue, as you've posted more details there.