in paragraphs_field_formatter_settings_summary(), paragraphs only returns summary markup if the currently assigned view mode actually exists. field_ui_display_overview_form() on the other hand only displays the settings icon if a truthy value was returned from the summary callback.

This means that if the view mode was removed but is still assigned, one is unable to change the assigned view mode via the field UI.

Comments

ciss’s picture

Title: Unable to change paragraphs formatter view mode if current view mode has been deleted » Unable to change from non-existing view mode in Field UI
Status: Active » Needs review
StatusFileSize
new575 bytes

The attached patch simply returns a whitespace to force the settings icon to appear. A better way to handle this might be to display a message that the currently assigned view mode is invalid.

ciss’s picture

Title: Unable to change from non-existing view mode in Field UI » Unable to edit formatter settings if missing viewmode is assigned
ciss’s picture

Issue summary: View changes

  • jeroen.b committed c102d71 on 7.x-1.x authored by ciss
    Issue #2468187 by ciss: Unable to edit formatter settings if missing...
jeroen.b’s picture

Status: Needs review » Fixed

Thanks, pushed to dev!

Status: Fixed » Closed (fixed)

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