-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
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
Labels
No labels