From 6f024382e5579bb1fd27dcbca31ed2ff34aaebbd Mon Sep 17 00:00:00 2001
From: Dries Buytaert <dries@buytaert.net>
Date: Sat, 7 Aug 2004 19:28:25 +0000
Subject: [PATCH] - Made the taxonomy module use drupal_goto() to fix up the
 interaction behavior.

---
 modules/taxonomy.module          | 9 ++-------
 modules/taxonomy/taxonomy.module | 9 ++-------
 2 files changed, 4 insertions(+), 14 deletions(-)

diff --git a/modules/taxonomy.module b/modules/taxonomy.module
index 22b662ba3e5c..64175d393444 100644
--- a/modules/taxonomy.module
+++ b/modules/taxonomy.module
@@ -147,6 +147,7 @@ function taxonomy_save_vocabulary($edit) {
   cache_clear_all();
 
   drupal_set_message($message);
+  
   return $edit;
 }
 
@@ -919,16 +920,10 @@ function taxonomy_admin() {
       }
       else {
         taxonomy_save_term($edit);
-        if (!$edit['tid']) {
-          // if INSERT show form again
-          $output .= taxonomy_form_term();
-          break;
-        }
-        // else (UPDATE or DELETE) fall through
       }
+      drupal_goto('admin/taxonomy');
       // fall through:
     default:
-      $output .= taxonomy_overview();
   }
 
   print theme('page', $output);
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module
index 22b662ba3e5c..64175d393444 100644
--- a/modules/taxonomy/taxonomy.module
+++ b/modules/taxonomy/taxonomy.module
@@ -147,6 +147,7 @@ function taxonomy_save_vocabulary($edit) {
   cache_clear_all();
 
   drupal_set_message($message);
+  
   return $edit;
 }
 
@@ -919,16 +920,10 @@ function taxonomy_admin() {
       }
       else {
         taxonomy_save_term($edit);
-        if (!$edit['tid']) {
-          // if INSERT show form again
-          $output .= taxonomy_form_term();
-          break;
-        }
-        // else (UPDATE or DELETE) fall through
       }
+      drupal_goto('admin/taxonomy');
       // fall through:
     default:
-      $output .= taxonomy_overview();
   }
 
   print theme('page', $output);
-- 
GitLab