Attached is a test case that demonstrates the issue. When a node has a reference to a taxonomy term, that reference is not deleted when the term is deleted.

I see 3 possible fixes.

1. Delete the term references on nodes when the term is deleted
2. Forbid the deletion of terms if a current node revesion contains a reference to the term.
3. Automatically create a new node revision for affected nodes which does not contain the term reference.

CommentFileSizeAuthor
taxonomy_2.test1.85 KBtekante

Comments

tekante’s picture

To clarify possible solutions listed in issue, I am seeking feedback on what the perceived correct solution would be.

bblake’s picture

subscribe

catch’s picture

Status: Active » Closed (duplicate)

This is 'by design' at the moment, there is a very long discussion at #914306: Create a batched framework for entity updates which has some proposed solutions to make it easier to fix. The current taxonomy behaviour is the same as node and user reference from D6 contrib (and their D7 counterparts) - we accept that terms may 'disappear' and handle it in the code. I don't like it, but we need to fix #914306: Create a batched framework for entity updates first.