Commit 00b04ba4 authored by Steven Wittens's avatar Steven Wittens
Browse files

- Fix search index not wiping on admin settings change.

parent 31d2520e
......@@ -128,10 +128,9 @@ function search_admin() {
if ($_POST) {
// If the word length settings change, the index needs to be rebuilt.
if (variable_get('minimum_word_size', 3) != $_POST['edit']['minimum_word_size']) {
// Note: ensure logical order of messages
system_settings_save();
drupal_set_message(t('The index will be rebuilt.'));
search_wipe();
system_settings_save();
}
else {
system_settings_save();
......
......@@ -128,10 +128,9 @@ function search_admin() {
if ($_POST) {
// If the word length settings change, the index needs to be rebuilt.
if (variable_get('minimum_word_size', 3) != $_POST['edit']['minimum_word_size']) {
// Note: ensure logical order of messages
system_settings_save();
drupal_set_message(t('The index will be rebuilt.'));
search_wipe();
system_settings_save();
}
else {
system_settings_save();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment