Error when sorting w/ multiple criteria
Status: Inactive
Brought to you by:
chris_hardie
When I attempted to sort results after searching by multiple (more
than two) criteria, I got a malformed SQL SELECT statement that
would not be processed. I discovered that this was caused by
multiple occurrences of the hidden "dbb_bool" input field in the
results page. Solved by moving the statement,
$order_by_input .= '<INPUT TYPE=hidden NAME=dbb_bool
VALUE="'.$FORM{dbb_bool}.'">';
in sub search of search.cgi so that it is only executed for the first
field ($first == 1) rather than for all subsequent fields.