I've created a link field with the 'Link Title' set to 'Predefined Title'. When I edit an existing node the title for each link is always set to '- Select -'. This requires the user to touch the field every time the node is edited since the field is required. I was able to fix this by adding the following to the link_field_process() function:

    $element['title']['#default_value'] = isset($element['#value']['title']) ? $element['#value']['title'] : '';

Comments

zipymonkey created an issue. See original summary.

zipymonkey’s picture

StatusFileSize
new703 bytes

I've include a patch for this issue.

bohz’s picture

Can confirm issue and patch works fine.
Thanks a lot man!

  • gausarts committed 14f0d4b on 7.x-1.x authored by zipymonkey
    Issue #2986397 by zipymonkey: Predefined titles are not set in...
gausarts’s picture

Status: Active » Fixed

Truly sorry for delay.
Committed. Thank you for contribution.

Status: Fixed » Closed (fixed)

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