statamic / eloquent-driver

Provides support for storing your Statamic data in a database, rather than flat files.
https://statamic.dev/tips/storing-content-in-a-database
MIT License
108 stars 78 forks source link

Prevent creation of duplicate terms on slug change #384

Closed daun closed 2 days ago

daun commented 3 days ago

Make sure we're using the original slug to query for a term after an update.

Prevents duplicates being created when changing a term's slug in the control panel.

Probably needs tests to avoid regressions.

Fixes #383