I have found this issue when I was trying to add elements under a link field and they wouldn't appear. I've had a look at the theme_link_field function and noticed that it was assuming that there will never be children elements.

A really quick fix for this issue would be to add a drupal_render_children right after the existing markup just in case another module adds any extra elements under link fields.

CommentFileSizeAuthor
#2 link-fix-link-field-widget-2155123-1.patch396 bytesjorgegc

Comments

jorgegc’s picture

Please find attached a patch that fixes the issue.

jorgegc’s picture

StatusFileSize
new396 bytes
jcfiala’s picture

Anyone willing to test this patch out?

jorgegc’s picture

Nobody, apparently... :-(

jcfiala’s picture

Status: Active » Closed (duplicate)

Amusingly, I just fixed this as part of #1980736: theme_link_field() only renders elements defined by this module - see there.