From 5581ed8b0cce71159ceaaa6a5a89939c6d1a9bf1 Mon Sep 17 00:00:00 2001 From: Nahuel ANGELINETTI Date: Mon, 7 Sep 2009 10:00:49 +0200 Subject: [PATCH] (bug #3584) use default index, if not specified This select a default index to search on, if there is none. --- C4/Search.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/C4/Search.pm b/C4/Search.pm index cadab261e2..675ac05ff5 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -1084,6 +1084,10 @@ sub buildQuery { my $operand = $operands[$i]; my $index = $indexes[$i]; + if(not $index){ + $index = 'kw'; + } + # Add index-specific attributes # Date of Publication if ( $index eq 'yr' ) { -- 2.39.5