From fd22c347b01fced973e33873ba536ef21f0e35ac Mon Sep 17 00:00:00 2001 From: Dries Buytaert <dries@buytaert.net> Date: Sun, 2 Aug 2009 10:51:17 +0000 Subject: [PATCH] - Patch #537044 by talor: hook_taxonomy_term_update and hook_taxonomy_term_insert were called backwards. --- modules/taxonomy/taxonomy.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index 9a95ae49c1dc..2c19e76a160f 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -427,13 +427,13 @@ function taxonomy_term_save($term) { if (!empty($term->tid) && $term->name) { $status = drupal_write_record('taxonomy_term_data', $term, 'tid'); field_attach_update('taxonomy_term', $term); - module_invoke_all('taxonomy_term_insert', $term); + module_invoke_all('taxonomy_term_update', $term); } else { $status = drupal_write_record('taxonomy_term_data', $term); _taxonomy_clean_field_cache($term); field_attach_insert('taxonomy_term', $term); - module_invoke_all('taxonomy_term_update', $term); + module_invoke_all('taxonomy_term_insert', $term); } db_delete('taxonomy_term_relation') -- GitLab