Closed (fixed)
Project:
Sphinx (Sphinx search integration)
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Nov 2008 at 11:37 UTC
Updated:
28 Nov 2008 at 23:02 UTC
When validating the search form with "sphinx_search_form_validate" , you are setting the error :
form_set_error($form_state['values']['searchstring'], t('You must enter a search string'));
This is incorrect as form_set_error expects the first argument to be the name of the field:
http://api.drupal.org/api/function/form_set_error :
form_set_error($name = NULL, $message = '', $reset = FALSE)
$name The name of the form element. If the #parents property of your form element is array('foo', 'bar', 'baz') then you may set an error on 'foo' or 'foo][bar][baz'. Setting an error on 'foo' sets an error for every element where the #parents array starts with 'foo'.
Comments
Comment #1
johsw commentedFixed in next release.