Skip to content

View mode ajax callback #6

@paulmartin84

Description

@paulmartin84

Pretty sure that the not(!) in the if condition is not needed. I believe the intended functionally is that if you choose default as the view mode you don't have to choose a fallback as default will always exist.

  if (!$settings['view_mode'] == 'default') {
    $widget['preview']['fallback_view_mode']['#prefix'] = '<div id="inline-entity-form-preview-fallback-view-mode" style="display: none;">';
  }

should be:

  if ($settings['view_mode'] == 'default') {
    $widget['preview']['fallback_view_mode']['#prefix'] = '<div id="inline-entity-form-preview-fallback-view-mode" style="display: none;">';
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions