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.

CommentFileSizeAuthor
#2 pic1.png19.39 KBbraindrift
hierarchical_select.patch1.4 KBneochief

Comments

wim leers’s picture

Status: Needs review » Fixed
braindrift’s picture

Status: Fixed » Needs work
StatusFileSize
new19.39 KB

Hi,

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?

braindrift’s picture

There 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).

braindrift’s picture

wim leers’s picture

Status: Needs work » Closed (fixed)

Let's continue in the other issue, as you've posted more details there.