When I render a page with a hierarchical select on it I get the following notice:

Notice: Undefined index: #post in form_builder()

I found that in hierarchical_select_process() $element['#post'] is being unset which results in the notice. Changing the code to set $element['post'] to an empty array resolves the issue and achieves the same result as unsetting it.

CommentFileSizeAuthor
#1 fix-post-notice-1463416-1.patch596 bytesBassistJimmyJam

Comments

BassistJimmyJam’s picture

Status: Active » Needs review
StatusFileSize
new596 bytes

Attached patch.

jchatard’s picture

Status: Needs review » Reviewed & tested by the community

Works great on 6.x-3.8

Thank you!

gold’s picture

Issue summary: View changes
Status: Reviewed & tested by the community » Closed (won't fix)

Tidying up the issue queue. The 6.x version is no longer supported. Only reopen this if it also applies to the 7.x.