Skip to content
Snippets Groups Projects
Commit 6f024382 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Made the taxonomy module use drupal_goto() to fix up the interaction behavior.
parent 3e39fa86
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment