[2.0.0-beta4] FieldFormatterSource: some settings are not saved

Created on 17 October 2024, 9 months ago

Problem/Motivation

Fresh Drupal 11.0 install, ui_suite_dsfr theme.

On Layout Builder:

  1. I add a field using "Component per item" field formatter
  2. I pick a component
  3. In a slot, I add a FieldFormatterSource and configure it
  4. I save
  5. I reopen the field formatter configuration
  6. Sometimes, my FieldFormatterSource configuration has not been saved

The issue happens with:

  • Enttity Reference / Label / Link label to the referenced entity (a checkbox)

The issue doesn't happen with:

  • String / Plain text / Link to the Content (a checkbox)
  • Enttity Reference / Rendered entity / View mode (a select)
  • Boolean / Boolean / Output format (a select)
  • Datetime / Time ago / Future format (a textfield)

Proposed resolution

What's wrong with this specific field formatter ? The issue happens in all entity reference fields tested.

🐛 Bug report
Status

Active

Version

2.0

Component

UI Patterns Field Formatters [2.x only]

Created by

🇫🇷France pdureau Paris

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @pdureau
  • 🇫🇷France just_like_good_vibes PARIS

    i am still on it.

  • Pipeline finished with Canceled
    8 months ago
    Total: 76s
    #352621
  • Pipeline finished with Success
    8 months ago
    Total: 563s
    #352623
  • 🇫🇷France just_like_good_vibes PARIS

    This one took me a lot of time, debugging and thinking. And finally, it seems to be there and working.
    it solves a long-time side effect of incomplete submitted values in ui patterns 2' forms.

    the best example is to take like a fieldFormatter with a boolean option, being true by default. it was impossible to save the false value.
    now it is possible and much more!
    WE need this so much :)..
    Take any site configured with ui patterns 2. resave a component form, and look at the config.
    the magic seems to happens now hahaha

    please review, christian ? Pierre?

  • Pipeline finished with Success
    8 months ago
    Total: 402s
    #353323
  • Pipeline finished with Skipped
    7 months ago
    #359565
  • Pipeline finished with Success
    4 months ago
    Total: 159s
    #438658
  • Pipeline finished with Canceled
    4 months ago
    Total: 91s
    #438890
  • Pipeline finished with Canceled
    4 months ago
    Total: 87s
    #438965
  • Pipeline finished with Canceled
    4 months ago
    Total: 78s
    #439044
  • Pipeline finished with Canceled
    4 months ago
    Total: 84s
    #440902
  • Pipeline finished with Canceled
    4 months ago
    Total: 31s
    #441002
  • Pipeline finished with Canceled
    4 months ago
    Total: 75s
    #441123
  • Pipeline finished with Canceled
    4 months ago
    Total: 85s
    #441205
  • Pipeline finished with Canceled
    4 months ago
    Total: 112s
    #441901
  • Pipeline finished with Canceled
    4 months ago
    Total: 31s
    #442630
  • Pipeline finished with Canceled
    4 months ago
    Total: 31s
    #444604
  • Pipeline finished with Canceled
    4 months ago
    Total: 73s
    #444826
  • Pipeline finished with Canceled
    4 months ago
    Total: 87s
    #444912
  • Pipeline finished with Canceled
    4 months ago
    #446442
  • Pipeline finished with Canceled
    4 months ago
    #446735
  • Pipeline finished with Success
    4 months ago
    Total: 146s
    #447348
  • Pipeline finished with Success
    4 months ago
    Total: 148s
    #447351
  • Pipeline finished with Success
    4 months ago
    Total: 172s
    #450326
  • Pipeline finished with Success
    4 months ago
    Total: 241s
    #450333
  • Pipeline finished with Success
    15 days ago
    Total: 401s
    #533456
Production build 0.71.5 2024