locomotivecms / engine

A platform to create, publish and edit sites
http://www.locomotivecms.com
Other
2.31k stars 625 forks source link

inconsistancy between many_to_many models #1385

Open gcolson opened 3 years ago

gcolson commented 3 years ago

Hi,

I have two content types C1 and C2, whith a many-to-many relation between them. I have one C1 entry named E1 and one C2 entry named E2. Using the editor UI, if i add a relation between E2 and E1 by editing the E2 entry, the relation is added in the E1 object, as expected. However, if I delete this relation by editing the E2 entry (using the trash icon), the E1 entry still has a reference to the E2 content entry.

I think this is a bug.

I'm using v4.0.1

greyskin commented 3 years ago

I've tested this and I am unable to reproduce your issue.

Just to confirm, when you say, "if I delete this relation by editing the E2 entry (using the trash icon)", do you mean that you delete the E1 entry from the many_to_many field in E2 or do you mean that you delete the entire E2 entry altogether?

I have tested both of the above scenarios and both result in the expected result, i.e. the E2 entry disappearing from the many_to_many field in the E1 entry.