We noticed that the relation fields weren't working as they used to. When I had content in a relation field (Entries, Categories, Products,…) the elements which were already listed in the field are listed a second time. Here is a video showing the issue.
This issue is only experienced when populating an empty field. It doesn't occur when editing a field which has already been saved with content and still holds content. It happens when creating Entries and Commerce Products and has been tested on multiple browsers and multiple projects running on the same version.
Expected behavior
Create a new entry
Edit a relation field with a limit >= 3 (maybe >=2 too, not tested)
Select one element (element A)
Select a second element (element B)
Notice that the relation field is now element A - element B
Select a third element (element C)
Notice that the relation field is now element A - element B - element C
Actual behavior
Create a new entry
Edit a relation field with a limit >= 3 (maybe >=2 too, not tested)
Select one element (element A)
Select a second element (element B)
Notice that the relation field is now element A - element A - element B
Select a third element (element C)
Notice that the relation field is now element A - element A - element B - element A - element B - element C
What happened?
Description
We noticed that the relation fields weren't working as they used to. When I had content in a relation field (Entries, Categories, Products,…) the elements which were already listed in the field are listed a second time. Here is a video showing the issue.
https://user-images.githubusercontent.com/1706605/226870516-f92265a6-aa41-46e6-aa74-cb5df7f9e8d8.mp4
This issue is only experienced when populating an empty field. It doesn't occur when editing a field which has already been saved with content and still holds content. It happens when creating Entries and Commerce Products and has been tested on multiple browsers and multiple projects running on the same version.
Expected behavior
Actual behavior
Craft CMS version
3.8.5
PHP version
8.1.13
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions