Hi,
I have a form with two taxonomy fields using the hierarchical select widget. When I use the form alone, everything works ok. But if I include the form as a page in a pageroute, the hierarchical select stops to work. It displays ok, but if I try to select something it displays the message "Received an invalid response from the server".
Don't know if it helps, but using Firebug and FirePHP, I found that it seems to be building the form twice. Inside hierarchical select there is an #after_build callback that sets an hs_form_build_id property on the form. In standalone forms, this callback is called once, and the id is correct. Inside of a pageroute, the callback is called twice: in the first one the id is generated, but not in the second.
Any ideas of what could be the problem?
Thanks in advance!
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | hs_pageroute.patch | 908 bytes | wim leers |
Comments
Comment #1
caugmar commentedComment #2
Tauran commentedAs there are some issues when using form storage (http://drupal.org/node/302240), the #after_build callback gets called twice.
For pageroute it is necessary that a module can deal with that.
Maybe Hierarchical Select can be changed accordingly.
Comment #3
wim leersTry this patch and let me know if it works.
Comment #4
wim leersBetter title.
Comment #5
jponch commented+1 - patch in response #3 worked for me :)
Comment #6
aleagi commentedHi there,
#3 patch make the trick!
Can it be included on HEAD?
Nice work guys! @:)
Regards,
Comment #7
wim leersTwo confirmations — committed :) Sorry for the delay!
http://drupal.org/cvs?commit=244532