Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#1 | remove-notice-for-author-field-2508097.patch | 1.09 KB | miax |
Comments
Comment #1
miax CreditAttribution: miax commentedComment #2
apanag CreditAttribution: apanag commentedThe above patch worked for me.
Thank you!
Comment #3
Chris Matthews CreditAttribution: Chris Matthews as a volunteer commentedThe 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.