When generating the display mode form the ds field plugin instances do not get the info on which formatter is set. This causes summaries to fail for custom DSFields. We noticed this when using the display_field_copy module as it wouldn't generate the correct summary.
See also issue on that project: #2822398-5: Copied field does not have widget field settings.

This can be fixed in field_ui.inc at line 1117 by adding:

    if (isset($field_settings[$key]['formatter'])) {
      $field['formatter'] = $field_settings[$key]['formatter'];
    }
CommentFileSizeAuthor
#2 ds-formatter-info-lost-2877276-2.patch503 byteskriboogh

Comments

kriboogh created an issue. See original summary.

kriboogh’s picture

StatusFileSize
new503 bytes

Here's a patch

davidwbarratt’s picture

Issue summary: View changes
aspilicious’s picture

Status: Active » Needs review
Issue tags: +Needs tests

  • aspilicious committed c0451f5 on 8.x-3.x authored by kriboogh
    Issue #2877276 by kriboogh: formatter info is lost when generating the...
aspilicious’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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