Skip to content

[5.x]: Merged fields are not properly merged or deleted #16198

@nathansnelgrove

Description

@nathansnelgrove

What happened?

Description

Just upgraded to Craft 5 on a client project. Huge multisite project, hundreds of fields. I had a lot of fields I could quickly merge that existed in matrixes and SuperTables before. I followed the instructions as per the upgrade docs, and I did this a couple different times with different DDEV and remote staging environments to make sure I wasn't missing anything.

Once I merged the fields, the merged fields do not delete. Here's an example below, where many redundant fields are still listed:

Image

Furthermore, the fields are not actually merged properly in the content. Below is a screenshot of a matrix. Each block in the matrix is an Internal Link, but instead of referring to the now-merged internalLink, this content is still internalLink2. To fix this, I have to manually replace each of these fields with the merged internalLink field and re-add my content.

Image

Steps to reproduce

  1. Update Craft CMS from 4.X to 5.X with PHP 8.3 (my only non-stock change) and MySQL 8.0.
  2. Merge dozens of duplicate fields previously using the craft fields/auto-merge command.

Expected behavior

I expect fields that are merged to be completely removed from the Fields screen, and their instances within content to be updated.

Actual behavior

Fields that are merged say they are used 0 times, remain in the Fields screen, and their instances do not update.

Craft CMS version

5.5.2

PHP version

8.3.14

Operating system and version

No response

Database type and version

MySQL 8.0

Image driver and version

No response

Installed plugins and versions

  • "craftcms/aws-s3": "^2.2.0",
  • "craftcms/ckeditor": "^4.4.0",
    
  • "craftcms/feed-me": "^6.5.0",
    
  • "craftcms/mailgun": "^3.1.0",
    
  • "craftcms/redactor": "^4.2.0",
    
  • "craftpulse/craft-colour-swatches": "^5.1.0",
    
  • "doublesecretagency/craft-googlemaps": "^5.0.3",
    
  • "nystudio107/craft-cookies": "^5.0.0",
    
  • "nystudio107/craft-imageoptimize": "^5.0.3",
    
  • "nystudio107/craft-retour": "^5.0.3",
    
  • "nystudio107/craft-seomatic": "^5.1.7",
    
  • "nystudio107/craft-typogrify": "^5.0.1",
    
  • "ostark/craft-async-queue": "^4.0.0",
    
  • "solspace/craft-freeform": "^5.7.2",
    
  • "verbb/field-manager": "^4.0.3",
    
  • "verbb/formie": "^3.0.12",
    
  • "verbb/super-table": "^4.0.2",
    
  • "vlucas/phpdotenv": "^3.4.0",
    
  • "wrav/oembed": "^3.1.1"
    

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions