Manage Display save not working when dragging hierarchical items to Disabled state

Created on 14 April 2025, 6 days ago

Problem/Motivation

Dragging items can have hierarchy and motion in 4 directions in the Manage Display page of any content type. If you for example add a field group (Fieldset) the field dragging handle/icon automatically changes from "Drag to re-order" to "Move in any direction". See the explanation here: https://www.drupal.org/project/drupal/issues/3389317 Differentiate visually dragging with and without hierarchy Needs work

This being cool, the other effect is, that if you now drag an item (a field) to Disabled area and Save, it has no effect, i.e. the saving does not happen even if you get a status message "Your settings have been saved."

Steps to reproduce

1. Goto Manage Display page of any content type
2. Add a field group of type HTML Element or a Fieldset
3. Save
4. Drag some of the (old) fields to the Disabled area.
5. Save
6. See that the field that you moved is in its original area, not in Disabled area.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

4.0

Component

User interface

Created by

🇫🇮Finland mlahde

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

Comments & Activities

  • Issue created by @mlahde
  • 🇫🇮Finland mlahde

    Interested to know if anyone else has noticed this behavior?

  • 🇮🇳India Tirupati_Singh

    I'm looking into it.

  • 🇮🇳India Tirupati_Singh

    Hi @mlahde, I tried replicating the issue as per the mentioned steps to reproduce however the issue didn't replicate. After dragging hierarchical field group fields to Disable state and saving the changes, the changes are getting saved properly. I didn't encounter any issue where the arranged items that moved to disable state is not getting save. I tried replicate it for different content types and choosing all the formatter options that are available for Field group. I've attached a video clip for your reference and as per the attached reference I think there's no such issue either related to the Gin theme or Field group module.

    Tested on:

    1. Gin: 4.0.6
    2. Field Group: 8.x-3.6
    3. Drupal: 11.0.5 and 10.3.6

    Dragging items can have hierarchy and motion in 4 directions in the Manage Display page of any content type. If you for example add a field group (Fieldset) the field dragging handle/icon automatically changes from "Drag to re-order" to "Move in any direction".

    The drag handler icon is also getting changed as for the nested fields we can change the field structure i.e., the field can be move in any direction as per the requirement under different field group items.

    @mlahde I wasn't able to reproduce this, so I'll close this one. If that's still a problem for some feel free to reopen.

Production build 0.71.5 2024