Note, this might be related to issue #549952, but that's on 6.x, so I haven't been able to retest on that branch.

The NodeFormCol admin menu attempts to prebuild the node form to see what elements are available to reorder, but it fails to set an empty 'input' value in form_state. This causes some modules (most notably date) to throw errors because 'input' is always set, but is oftentimes an empty array.

For example, in Date the Select field calles drupal_array_get_nested_value($form_state['input']) and will throw a non-fatal (but still fatal!) error if the input is not at least an empty array.

Attached is a one-liner patch to fix this.

CommentFileSizeAuthor
nodeformcols_empty_input.patch426 bytesAnonymous (not verified)

Comments

barraponto’s picture

I could not reproduce this error.

barraponto’s picture

Status: Active » Reviewed & tested by the community

#1175468: Fatal error - related to Date module better describes the issue at hand.
Patch works fine for me.

dddbbb’s picture

sub

dgastudio’s picture

thank u very much!!

i can confirm that this patch also solve #1156428: Node form columns compatibility with Hierarchical Select!

barraponto’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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