Field UI 'formatter settings' form broken

Created on 28 August 2010, over 14 years ago
Updated 8 December 2024, 5 months ago

- go to admin/structure/types/manage/article/display, make sure selected formatter for 'body' field is 'Default' - if not, set it to 'Default' and hit 'Submit'
- change formatter for 'body' field to 'Trimmed', don't 'Submit' but hit the 'Edit settings' cogwheel button at the end of the 'Body' row.
- instead of the settings form for the 'Trimmed' formatter, you get the one for the 'Default' formatter (which has no settings, thus empty form)

Attached patch updates Field UI code for the new behavior of #limit_validation_errors (rightly) introduced in #763376: Not validated form values appear in $form_state .

I set up to write a test for that, but it turns out that the bug is JS-only, so no amount of simpletesting would have helped catch this.

--

There are two commits for this issue, one in Aug 2010 and another in Sep 2010. Then, the title was changed for adding tests. As far as I can tell tests were added in #940668: "Manage display" : Formatter change not reflected on settings and this can now be closed.

I am restoring the meta data for the most recent commit.

If additional testing is still needed, open a new issue and explain what needs to be testing. Of course, check for an existing issue first.

📌 Task
Status

Fixed

Version

7.0 ⚰️

Component

field_ui.module

Created by

🇫🇷France yched

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

  • Needs backport to D7

    After being applied to the 8.x branch, it should be considered for backport to the 7.x branch. Note: This tag should generally remain even after the backport has been written, approved, and committed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024