little bug in validate function
sinasquax - September 1, 2009 - 12:04
| Project: | Search config |
| Version: | 6.x-1.5 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Hello there is a small bug which disable validation if website is not in english :
on search_config.module at line 285,
replace :
if ($form_state['values']['form_id'] == 'search_admin_settings' && $form_state['values']['op'] == 'Save configuration') {
by :
if ($form_state['values']['form_id'] == 'search_admin_settings' && $form_state['values']['op'] == t('Save configuration')) {

#1
Also re-index doesn't work:
function search_config_validate($form, &$form_state) {- if ($form_state['values']['form_id'] == 'search_admin_settings' && $form_state['values']['op'] == 'Save configuration') {
+ if ($form_state['values']['form_id'] == 'search_admin_settings' && $form_state['values']['op'] == t('Re-index site')) {
+ drupal_goto('admin/settings/search/wipe');
+ }
+ elseif ($form_state['values']['form_id'] == 'search_admin_settings' && $form_state['values']['op'] == t('Save configuration')) {
$post_values = $form_state['values'];
$node_types = node_get_types('names');