Re-use an existing field import its conditional field as well.

Created on 11 October 2023, over 1 year ago

Problem/Motivation

When reusing a field on another content type, ("Re-use an existing field" button) it appears that it also import the existing conditional field (manage dependencies).

Drupal 10.1.4
Conditional Fields: 4.0.0-alpha5
Fresh Drupal install with Umami Food Magazine demo instal.

Steps to reproduce

Content type A: Recipe
Target field: field_cooking_time (int) Controlled by: field_difficulty , is visible when difficulty = hard

Content type B: Article
Click on Manage Fields
Click on Re-use an existing field
Reuse field_cooking_time and save the field.

Now click on Manage dependencies for the Article content type. You can see the existing conditional field, exactly like on the Recipe content type. Hover over the Edit button, and you can see that the URL path relates to the Recipe content type, not the Article content type.

This means our field cooking time will be hidden on our Article, because the condition is false.

If we delete the dependency from the Article content type, it send you back to the Recipe content type and delete the dependency there.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

๐Ÿ› Bug report
Status

Active

Version

4.0

Component

Code

Created by

๐Ÿ‡ฆ๐Ÿ‡บAustralia zebrapuddingrainfall

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024