Gossamer Forum
Home : Products : DBMan : Customization :

bug fix for multisort mod with long/short

Quote Reply
bug fix for multisort mod with long/short
In db.pl sub query replace:

# Slice the @hits to only return the ones we want, only have to do this if the results are sorted.
if (exists $in{'sb'}) {


# Slice the @hits to only return the ones we want, only have to do this if the results are sorted.
if ((exists $in{'sb1'})|(exists $in{'sb2'})|(exists $in{'sb3'}) ) {

The symptom was that long/short mod worked and displayed all records in long form correctly until sort order was applied. The multi sort mod replaced in{'sb'} variable with sb1,sb2 and sb3. This caused the search results in the long format to always display the first record only because the search results were not trimmed properly when sorting.

Now the query routine respects the mh=1 factor in the long/short mod and will pass forward only 1 hit in the @hits array.

Can someone make sure this gets to Lois' page?
Wes