Bug 19582: (follow-up) get params in correct order
authorNick Clemens <nick@bywatersolutions.com>
Mon, 12 Mar 2018 15:56:45 +0000 (15:56 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 27 Mar 2018 20:50:38 +0000 (17:50 -0300)
We were ordering the values out of sync with the order of the mathclist
param and so causing 'entire record' and 'all headings' to be reversed

Signed-off-by: Nicolas Legrand <nicolas.legrand@bulac.fr>
Signed-off-by: Alex Arnaud <alex.arnaud@biblibre.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

authorities/auth_finder.pl

index 4d6e61f..76f215b 100755 (executable)
@@ -64,8 +64,8 @@ if ( $op eq "do_search" ) {
     my @value     = (
         $query->param('value_mainstr') || undef,
         $query->param('value_main')    || undef,
+        $query->param('value_match')   || undef,
         $query->param('value_any')     || undef,
-        $query->param('value_match')   || undef
     );
     my $orderby        = $query->param('orderby')        || '';
     my $startfrom      = $query->param('startfrom')      || 0;