hyper icon indicating copy to clipboard operation
hyper copied to clipboard

Hyper field retains element

Open ryanleichty opened this issue 4 months ago • 1 comments

Describe the bug

The hyper field retains the entry element even after you remove it.

Image

This is the second card shown in the screenshot above. You can see that it has no entry, but when dumping the field it still shows that it has an element.

Image

Steps to reproduce

  1. Add a nested entry with a hyper field. In the hyper field, select an entry. Save it and the root owner.
  2. Delete the entry from the hyper field. Save it and the root owner.
  3. Dump the hyper field and see that an element is still saved with it.

Craft CMS version

5.8.14

Plugin version

2.2.7

Multi-site?

No

Additional context

No response

ryanleichty avatar Sep 22 '25 17:09 ryanleichty

I feel like that might be okay, as the linkValue is null (the element ID) and it's currently getting the element via its cache. I'll do some testing, but I don't believe the link will actually render.

Does this also happen with non-nested entries (non Matrix fields)? I imagine there wouldn't be a difference, but just thought to check.

engram-design avatar Oct 04 '25 02:10 engram-design