Closed (outdated)
Project:
Term condition
Version:
8.x-1.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Jul 2019 at 20:48 UTC
Updated:
2 Apr 2023 at 22:30 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
danielvezaYes good call. I had this ticket line up to work on #3056194: [meta] Investigate fixes for deleting Vocabs
But a totally sane call is to also check if the term(s) implement TermInterface on load. Lets try that.
Comment #3
danielvezaHere is a patch that checks if term exists otherwise you get a WSOD on D9
Todo:
Consider a hook_term_delete to delete terms on blocks.
Add tests.
Comment #4
danielvezaComment #5
dieuweI'm closing all old issues for the
8.x-1.x-devbranch. If this issue is still relevant, please update and re-open it for the2.0.x-devbranch.Comment #6
dieuweIn this case, I have already committed #3325547: PHP fatal error when trying to edit a condition that references a deleted term which seems like it solves the same problem in a different way (the patch from here still applies on 2.0.x). Happy to revisit approach if needed.