See https://drupal.org/SA-CORE-2014-002 and https://drupal.org/node/2242663 for details.

This affects hierarchical select widgets when they are displayed to anonymous users on cached pages.

This patch also includes the rothstein's changes as well.

Comments

David_Rothstein’s picture

Status: Active » Needs review
StatusFileSize
new819 bytes

Untested patch.

DOC-2’s picture

#1 works for me just for 1 site. On an other site, still no showing hierarchical terms. Thanks

grndlvl’s picture

Issue summary: View changes
StatusFileSize
new3.91 KB

I was having issues with the HS working on cached pages because of a stale form_build id and it was failing on all subsequent submissions after the first. This appears to be because of change introduced in Drupal 7.27 as well.

After looking at several implementation of ajax_deliver callbacks I did not notice anyone, other than the file_upload, doing this. Furthermore, I am not sure if it necessary now because ajax_form() looks up the form based on the form_build_id and when not available errors out.

With that I have adjusted the hierarchical_select_ajax() to mimic other imlementations like field_collection and ctools. http://cgit.drupalcode.org/field_collection/tree/field_collection.module...

Thanks,

Jonathan

stefan.r’s picture

Status: Needs review » Closed (fixed)

Committed, thanks!

stefan.r’s picture

Status: Closed (fixed) » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.