craftcms / craftcms/cms

[5.x]: Nested entries being duplicated

Open
#19,107 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
PHP
Stars
3.6k
Forks
705
Avg merge
1d 5h
Merged PRs (30d)
134

Description

What happened?
Description

Our authors have been noticing nested entries being duplicated on pages. Unfortunately, I don't know what the steps are that reproduce the issue, but my only hunch is that it's related to drafts being applied. I'm going to do some testing myself to see if I can reproduce it, but I wanted to note this now in case anyone else has experienced this.

We have generic pages that use a page-builder like experience with a matrix field, and it's the nested entries within there that are being duplicated.

Steps to reproduce
  1. NA
Craft CMS version

5.10.3

PHP version

8.2.26

Operating system and version

Linux 6.1.170

Database type and version

MySQL 8.0.44

Image driver and version

Imagick 3.7.0 (ImageMagick 7.1.1-32)

Installed plugins and versions

Alt Text Generator | 5.2.1
Amazon S3 | 2.3.0
Asset Usage | 4.2.1
CKEditor | 5.6.1
Colour Swatches | 5.1.0
Empty Coalesce | 5.0.0
Hyper | 2.3.7
Image Hotspots | 3.0.1
Many to Many | 4.0.4
Neo | 5.5.9
Retour | 5.0.14
SEOmatic | 5.1.21
Template Selector | 5.0.1
Units | 5.0.1
Vite | 5.0.1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by creating a generic page with a matrix field containing nested entries in the reported Craft CMS 5.10.3 environment, then test whether applying drafts duplicates them. Compare behavior with and without the listed plugins and narrow the issue to a reproducible case; done means nested entries remain single and the reproduction is covered by a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
mysql, php
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.