this relates to the fix from #1321094: Allow setting a default Title without setting a default URL - the $field variable doesn't have a "form_id" key when this is called from a node edit form.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

brad.bulger’s picture

i'm not sure if there are any other cases besides the content_field_edit_form where "form_id" is defined, so i just added a test for its existence.

brad.bulger’s picture

a bit out of scope of this issue, but the same function was getting undefined index notice errors for $item['url'] and $item['title'] under various circumstances, so this is a re-roll to fix all of that.

jcfiala’s picture

Issue summary: View changes
Status: Active » Fixed

Oh, good point. Yeah, that is throwing errors, I can see it in the simpletests.

Thanks for the patch, I've applied it and it should go into dev release soon.

Status: Fixed » Closed (fixed)

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