Item13858: MultiSearchPlugin fails when a sub-search returns no results
Priority: Normal
Current State: Closed
Released In: n/a
Target Release: n/a
If the
MultiSearchPlugin searches for several criteria (sub searches) and one of them returns no results the plugins fails in trying to sort an array without a valid reference
The fix is to test for the existance of the array before trying to sort.
In
MultiSearchPlugin.pm around line 458 add the next unless......
for ( my $i = 1 ; $i <= $searchCounter ; $i++ ) {
next unless defined $sortedIndexes[$i];
@{$sortedIndexes[$i]} = sort { $a->{indexvalue} <=> $b->{indexvalue} }
@{$sortedIndexes[$i]};
}
I will check this in when I am at my development machine.
--
KennethLavrsen - 18 Nov 2015