Description
I noticed that the references count in the deletion blocker for an entry I was deleting, was suspiciously high.
There is only a single element (entry) with a CKEditor link to the "I am an entry" entry, so the count is obviously wrong. And as far as I can tell, the count actually keeps increasing every time I apply a draft for the entry that owns the link.
Steps to reproduce
- Create two entries, "Entry A" and "Entry B". In "Entry A", link to "Entry B" in a CKEditor field. Fully save "Entry A".
- Trigger the deletion blocker for "Entry B". Make a note of the references count in the "The entry is referenced by CKEditor fields in X other elements." message.
- Go back to the edit page for "Entry A", and make a change (don't remove the link). Let the auto-save complete; then click Save to apply the provisional draft.
- Trigger the deletion blocker for "Entry B" again. Confirm that the references count has now increased.
Additional info
- Craft version: 5.10.7
- PHP version: 8.2
- Database driver & version:
- Plugins & versions: CKEditor 5.6.1
Description
I noticed that the references count in the deletion blocker for an entry I was deleting, was suspiciously high.
There is only a single element (entry) with a CKEditor link to the "I am an entry" entry, so the count is obviously wrong. And as far as I can tell, the count actually keeps increasing every time I apply a draft for the entry that owns the link.
Steps to reproduce
Additional info