Stillat / relationships

Provides automated bi-directional @statamic entry relationships
MIT License
18 stars 1 forks source link

Terms sharing the same name are incorrectly updated #23

Closed mikemartin closed 1 year ago

mikemartin commented 1 year ago

Found another small bug. The taxonomy term is updated in all taxonomies, regardless if it is the specified taxonomy in the relationship.

For example, in the relationship below the assorted term is in both my Colours taxonomy and another taxonomy Tips. When the relationship is filled, both Assorted terms in each taxonomy are updated with the products.

Relate::manyToMany(
            'term:colours.products',
            'entry:{pens,markers,accessories,refills}.colours'
);
JohnathonKoster commented 1 year ago

I've added in some checks to also include the original taxonomy when it looks up the terms in 2.0.5 (S4) and in 1.2.6 (S3) 🙂