If author field is added separately on node add/edit I get this notice:

Notice: Undefined index: #size in ctools_node_form_author_content_type_render() (line 31 of ../ctools/plugins/content_types/node_form/node_form_author.inc).

I got this notice due to the author field being split up in to two different fields ‘date' and ‘time’ fields.
(I’m using the date_popup_authored module to accomplish this).

Attached is a patch that checks so the '$block->content['author']['date']['#size']’ exists and also checks if it exists as separate fields as it is when using date_popup_authored module.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

miax’s picture

apanag’s picture

The above patch worked for me.
Thank you!

Chris Matthews’s picture

The 18 June 2015 patch to node_form_author.inc applied cleanly to the latest ctools 7.x-1.x-dev and if still applicable needs to be reviewed.

Checking patch plugins/content_types/node_form/node_form_author.inc...
Hunk #1 succeeded at 30 (offset 2 lines).
Applied patch plugins/content_types/node_form/node_form_author.inc cleanly.