Hi,
I have seen a lot of issues with this error but this one is a bit different .
I have created a custom hs element based on this tutorial and using form alter
to include that form element in the form .
I have included this element in the node form
1 - url = http://www.example.com/node/add/volunteer-registeration
The HS works perfectly fine.
2 - url = http://www.example.com/node/add/coach-registeration?product_nid=267
In this case it breaks down.
I am using ubercart module along with UC Node Checkout (http://drupal.org/project/uc_node_checkout) .
I have created a view of all the products of type coach positions as products as used UC Node Checkout
to redirect the user to node/add/coach-registeration to get some extra details and the url generated by the
UC Node Checkout is as url in 2.
I am still debugging if I come across anything I will post the details.
If u need any more info or help from me just let me know.
Thanks in advance .
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 535274.patch | 2.2 KB | wim leers |
| #5 | 535274-D5.patch | 2.29 KB | wim leers |
Comments
Comment #1
wim leersInteresting problem. I can see how this may not work. The additional GET parameters should also be used when HS performs callbacks to the servers. That should fix it. Could you please try adding your additional GET parameters to Drupal.settings.HierarchicalSelect.url?
Comment #2
junedkazi commented@Wim,
Can u tell me how do I do that .
Firstly I tried hard coding the product_nid in the url in the HS module
and it worked .
Then I tried this in the form_alter of my module
But it does not work .
I have set my module weight to 100 so that it fires after HS module but it still does not work .
Also can you please explain how the GET parameter plays a role in this .
Comment #3
junedkazi commentedsorry the php code which I pasted has the js files commented .
It will look like this
Comment #4
junedkazi commentedJust changing status.
If you need any more info pls let me know .
Comment #5
wim leersFixed! Patches attached
- D6: http://drupal.org/cvs?commit=251452
- D5: http://drupal.org/cvs?commit=251454
Comment #6
eugenmayer commentedHey wim,
you only patched the current dev version with the stuff for the hierarchical.js changes, but forgot the one for the *.module...so the HS is not working anymore
*update: Well its in the CVS, but not in the current dev package ( 20.08.09 )
**update: Just got told, its a nightly build. Well thats odd, that it was not included
Comment #7
wim leersYeah, I think development snapshots are broken … Try doing a CVS checkout instead.