Shared fields auto created CF rules

Created on 12 April 2024, 7 months ago
Updated 25 April 2024, 7 months ago

I came across a problem today. I have different CT's that share fields. I created som CF's on CT-A and it created them automatically on CT-B. If I delete from CT-B it is deleted from CT-A.

I'm running 10.2.4.

🐛 Bug report
Status

Active

Version

4.0

Component

Code

Created by

🇺🇸United States guymandude

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

Comments & Activities

  • Issue created by @guymandude
  • 🇮🇳India sakthi_dev

    @guymandude,
    I wasn't able to reproduce the issue. Correct me if I'm doing something wrong.
    Versions:
    PHP: 8.1.27
    Drupal: 10.2.5-dev
    Conditional Field: 4.0.0-alpha5

    1. Installed Conditional Fields
    2. Created a new Content Type Landing Page and reused field Field Tags from Article Content Type
    3. Created a condition for the field tags if body has value for Landing Page

    Not it's created in any of other Content type.

  • 🇺🇸United States guymandude

    Sorry for the delay in feedback. It sounds like you didn't create the same environment as mine. I have to do this from memory as I solved the immedate problem by creating essentially a suplicate field for both CT's...

    I Create 2 different CT's. I creadted a Term Ref field I would use for both CT's. I used CF to control a field based on certain Taxonomy ID's. Each CT uses different Terms (Tax ID's) from the same Taxonomy.

    I found that after i created the CF on the first CT, the second CT already had CF applied to it without me having configured any. The applied CF was identical on the second CT but because it used the Terms the first CT needed I needed to adjust it for the Terms the second CT needed. If I adjusted it on CT2 the adjustments broke the CF on CT1. Likewise if I deleted it from CT2 it was deleted from CT1.

Production build 0.71.5 2024