field_collection.module

line 783.

I believe field_collection_item_is_translatable has been put onto the wrong array.

    $elements['edit'] = array(
      '#type' => 'textfield',
      '#title' => t('Edit link title'),
      '#default_value' => $settings['edit'],
      '#description' => t('Leave the title empty, to hide the link.'),
      '#access' => field_collection_item_is_translatable(),
    );
    $elements['translate'] = array(
      '#type' => 'textfield',
      '#title' => t('Translate link title'),
      '#default_value' => $settings['translate'],
      '#description' => t('Leave the title empty, to hide the link.'),
    );

should be

    $elements['edit'] = array(
      '#type' => 'textfield',
      '#title' => t('Edit link title'),
      '#default_value' => $settings['edit'],
      '#description' => t('Leave the title empty, to hide the link.'),
    );
    $elements['translate'] = array(
      '#type' => 'textfield',
      '#title' => t('Translate link title'),
      '#default_value' => $settings['translate'],
      '#description' => t('Leave the title empty, to hide the link.'),
      '#access' => field_collection_item_is_translatable(),
    );
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

icondigital created an issue. See original summary.

tom.hadkiss’s picture

  • icondigital authored 0964199 on 7.x-1.x
    Issue #2816871 by icondigital: Edit link now editable when translation...
jmuzz’s picture

Status: Active » Fixed

Nice catch. Thanks for the fix.

Status: Fixed » Closed (fixed)

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