Hi,
Merging node form into one form, I had to drop the assumption that $form['node'] is an object. Included patch just checks if that element is an array or a node in you implementation of form_alter().
cheers,
TUc

CommentFileSizeAuthor
tl-node_as_array.patch710 bytesTUc

Comments

markus_petrux’s picture

Status: Needs review » Postponed (maintainer needs more info)

hmm... The node module sets this as an object, I think. If someone else alters the form, it should respect the original format of the node, otherwise it can cause unexpected behaviors and/or errors in many other places where it is assumed that's a node object.

Could you please clarify who is changing $form['#node'] ?

markus_petrux’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Not enough information.