Closed crackAT closed 2 years ago
Same issue happened here, the cp show Undefined offset: 1
when browsing the taxonomies and its not possible to select taxonomies anymore on a taxonomised entry.
User deleted a term, which was still selected on a few entries.
Similar issue here, we can delete a taxonomy/tag (well it says deleted - no error), but since an entry still has it as a Tag it never goes away from the Tags overview.
Looking in TermRepository & BasicStore it seems to be missing checking all Associations and cleaning them before deleting itself..
I believe this should be resolved by https://github.com/statamic/cms/pull/6504 👍
Hello,
if someone delete a Taxonomy Term that is assigned to an entry, i get an 500 Error when trying to edit the entry.
Maybe there is an if statement missing?
Similar Issue: https://github.com/statamic/cms/issues/3229
How to Reproduce
Add a term to an entry, delete the term and try to edit the entry again.
Extra Detail
Environment
Statamic 3.1.6 Pro Laravel 8.37.0 PHP 7.3.11 4rn0/statamic-v3-image-optimizer 1.0.8 aryehraber/statamic-logbook 2.0.1 phpsa/statamic-analytics 1.3.0 rbmh/statamic-filtered-terms-fieldtype 1.0.2 rbmh/statamic-location-fieldtype 1.0.3 rbmh/statamic-redirects 1.0.8 statamic/eloquent-driver 0.1.1