The module doesn't show a label for the FAPI elements of type select_or_other.

The following quick hack worked, but I'm not sure if this is the right solution for all select_or_other element types.

/**
 * Helps find the title of the field, as it could be in several places.
 */
function _field_collection_table_get_title($field) {
  $title = '';
  $required = FALSE;

  if (isset($field['#language']) && isset($field[$field['#language']])) {
    $language = $field['#language'];
// ---------------------------------------------------------------
    if (isset($field[$language]['#type']) && $field[$language]['#type'] == 'select_or_other') {
      $title = $field[$language]['select']['#title'];
      $required = !empty($field[$language]['select']['#required']);
    }
// ---------------------------------------------------------------
    elseif (isset($field[$language]['#title'])) {
CommentFileSizeAuthor
#2 Support_select_other.patch752 byteslazzyvn

Comments

Alan D. created an issue. See original summary.

lazzyvn’s picture

StatusFileSize
new752 bytes

I got same issue
here is the my patch

  • kevineinarsson committed 7c7e433 on 7.x-1.x
    Issue #2876606 by lazzyvn, Alan D., kevineinarsson: Select or other...
kevineinarsson’s picture

Status: Active » Fixed

A fix has been pushed to dev. Feel free to add a new comment and change the issue status if the problem persists.

Status: Fixed » Closed (fixed)

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