You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Updating term slug creates duplicate instead of updating #10938
When the stache watcher is disabled, updating a term slug in the control panel creates a duplicate of the term instead of updating the term's slug. Looking at the content folder, the file is correctly renamed, but the control panel shows both the previous as well as the new version of the term.
There's a workaround — clearing the stache from an event listener after each term save — but that probably shouldn't be necessary. There's a related PR #9260 but since that marked the issue as solved, I figured this might be something else and opened a new issue.
Activity
joshuablum commentedon Oct 14, 2024
Issue seems to be that
$term->getOriginal('slug')returnsnullresulting in not deleting the old term because it thinks it's new.daun commentedon Oct 14, 2024
Coincidentally, this seems to prevent the automatic update of term references in entries using that taxonomy.
daun commentedon Jan 9, 2025
I've uploaded a reproduction that reliably shows the issue at daun/statamic-term-update-repro.