From 236da7af059e6cf3aba6e8ec923e082b1f8fe143 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 29 Nov 2005 17:41:27 +0000 Subject: - Patch #31151: adding taxonomy terms has no feedback --- modules/taxonomy.module | 12 +++--------- modules/taxonomy/taxonomy.module | 12 +++--------- 2 files changed, 6 insertions(+), 18 deletions(-) (limited to 'modules') diff --git a/modules/taxonomy.module b/modules/taxonomy.module index 701645957..f58f6db29 100644 --- a/modules/taxonomy.module +++ b/modules/taxonomy.module @@ -1148,15 +1148,9 @@ function taxonomy_admin() { // Special block for our "add term" menu localtask. this covers // the use of the "add term" LOCAL_TASK on a "view terms" page. - if (is_numeric(arg(2)) && arg(3) == 'add' && arg(4) == 'term') { - if ($op != t('Submit')) { - $output = taxonomy_form_term(array('vid' => arg(2))); - return $output; - } - else { - taxonomy_save_term($edit); - drupal_goto('admin/taxonomy'); - } + if (is_numeric(arg(2)) && arg(3) == 'add' && arg(4) == 'term' && $op != t('Submit')) { + $output = taxonomy_form_term(array('vid' => arg(2))); + return $output; } switch ($op) { diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index 701645957..f58f6db29 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -1148,15 +1148,9 @@ function taxonomy_admin() { // Special block for our "add term" menu localtask. this covers // the use of the "add term" LOCAL_TASK on a "view terms" page. - if (is_numeric(arg(2)) && arg(3) == 'add' && arg(4) == 'term') { - if ($op != t('Submit')) { - $output = taxonomy_form_term(array('vid' => arg(2))); - return $output; - } - else { - taxonomy_save_term($edit); - drupal_goto('admin/taxonomy'); - } + if (is_numeric(arg(2)) && arg(3) == 'add' && arg(4) == 'term' && $op != t('Submit')) { + $output = taxonomy_form_term(array('vid' => arg(2))); + return $output; } switch ($op) { -- cgit v1.2.3