Skip to content
Snippets Groups Projects
Commit 0a61aff2 authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#183390 by hunmonk: forms should use form_state['redirect'] for redirection,...

#183390 by hunmonk: forms should use form_state['redirect'] for redirection, not drupal_goto() - fix this in comment_admin_overview_submit()
parent 1e8ddda9
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -1285,7 +1285,7 @@ function comment_admin_overview_submit($form, &$form_state) { ...@@ -1285,7 +1285,7 @@ function comment_admin_overview_submit($form, &$form_state) {
} }
cache_clear_all(); cache_clear_all();
drupal_set_message(t('The update has been performed.')); drupal_set_message(t('The update has been performed.'));
drupal_goto('admin/content/comment'); $form_state['redirect'] = 'admin/content/comment';
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment