Found a bug appearing when used along with Layout Builder. Issue is extra field settings do not persist on "Default" display if Layout Builder is enabled on "Full content" display.

It is easy to reproduce. Here are the steps:

Step 1
Install a fresh Drupal 8 (I used latest 8.8.5). Enable modules: extra_field_plus, extra_field_plus_example and layout_builder
Step 2
Go to "admin/structure/types/manage/article/display" and enable "Node label formatted" extra field. from the example module
Step 3
Enable "Full content" display
Enable Full Content display
Step 4
Go to "admin/structure/types/manage/article/display/full" and enable Layout Builder by enabling checkboxes "Use Layout Builder" and "Allow each content item to have its layout customized."
Enable layout builder on Full Content
Step 4
Go back to default display "admin/structure/types/manage/article/display" and configure something on extra field. Save settings by submitting the page.
Configure extra field settings
Step 5
Reload default display page again "admin/structure/types/manage/article/display". Settings made on extra field are lost!

Settings are lost!

Please note issue happens only if we enabled "Allow each content item to have its layout customized." otherwise the issue does not happen.

Comments

junaidpv created an issue. See original summary.

anybody’s picture

Version: 8.x-1.x-dev » 8.x-2.x-dev

Switchted to latest version. Is this still valid there?

anybody’s picture

anybody’s picture

@junaidpv please test with the MR form the related issue. Should this be closed as duplicate?

anybody’s picture

Status: Active » Postponed

We should postpone this on all other open issues, as this might be a result of these.

Furthermore we then need a test to reproduce this issue as of #3270794: Write tests for basic functionality

anybody’s picture

Status: Postponed » Active

Perhaps the issue was caused by #3278684: Invalid config schema so this should be retested manually and we should have a test for this, as written in #5.

grevil’s picture

Status: Active » Fixed

@Anybody seems like it, the issue is not reproducible anymore!

anybody’s picture

Status: Fixed » Closed (cannot reproduce)

Thanks @Grevil for testing this! So this might have been solved by other bug fixes. Let's set this closed (can't reproduce) instead.

@junaidpv could you please retry with latest 8.x-2.x? If you are still able to reprodue this issue, please tell us! Best would be then to add a failing test for this.