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.
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.
Comment | File | Size | Author |
---|---|---|---|
#2 | link-undefined-validate-2078599-2.patch | 2.21 KB | brad.bulger |
#1 | link-undefined-form_id-2078599-1.patch | 836 bytes | brad.bulger |
Comments
Comment #1
brad.bulger CreditAttribution: brad.bulger commentedi'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.
Comment #2
brad.bulger CreditAttribution: brad.bulger commenteda 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.
Comment #3
jcfiala CreditAttribution: jcfiala commentedOh, 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.