Closed (fixed)
Project:
Node form columns
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
17 May 2011 at 04:45 UTC
Updated:
9 Jan 2019 at 23:51 UTC
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.
| Comment | File | Size | Author |
|---|---|---|---|
| nodeformcols_empty_input.patch | 426 bytes | Anonymous (not verified) |
Comments
Comment #1
barrapontoI could not reproduce this error.
Comment #2
barraponto#1175468: Fatal error - related to Date module better describes the issue at hand.
Patch works fine for me.
Comment #3
dddbbb commentedsub
Comment #4
dgastudio commentedthank u very much!!
i can confirm that this patch also solve #1156428: Node form columns compatibility with Hierarchical Select!
Comment #5
barrapontocommited to latest dev: http://drupalcode.org/project/nodeformcols.git/commit/0120682