In function taxonomy_save_term(), the modules' taxonomy hooks are invoked immediately after the term_data table has been updated, but before updating term_relation, term_hierarchy, and term_synonym.
This is inconsistent with term deletion, which updates all those tables before invoking the taxonomy hooks (and which I think is a nice behavior).
The current behavior causes me a problem in a custom module I am writing, where my taxonomy hook needs to check the parents of the term being updated. To work around this, I moved the hook invocation near the bottom of taxonomy_save_term().
This issue seem to apply to the CVS version as well.
Comment | File | Size | Author |
---|---|---|---|
#3 | taxonomy.module_27.patch | 1.24 KB | David Lesieur |
Comments
Comment #1
chx CreditAttribution: chx commentedIf you have solved the problem could you please roll a patch? Against HEAD, please. See the handbook on how to get HEAD and create a patch. Thanks.
Comment #2
magico CreditAttribution: magico commentedIs this still a problem?
Comment #3
David Lesieur CreditAttribution: David Lesieur commentedYes, this is still a problem. Here is a patch. Thanks for reminding me...
Comment #4
AjK CreditAttribution: AjK commentedPatch applied and seems ok. Didn't break anything that I could see.
Functionally this seems sensible so it's a +1 from me.
regards,
--AjK
Comment #5
AjK CreditAttribution: AjK commentedComment #6
drummCommitted to HEAD.
Comment #7
(not verified) CreditAttribution: commented