From d4877f7a02e4428e68c24ba117be37c9a5c96763 Mon Sep 17 00:00:00 2001 From: Henri-Damien LAURENT Date: Fri, 26 Feb 2010 16:06:35 +0100 Subject: [PATCH] Fix for Bug 6669 - If a patron search returns one result, redirect to patron details page Content-Type: text/plain; charset="utf-8" --- members/member.pl | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/members/member.pl b/members/member.pl index 2be45bc..724c996 100755 --- a/members/member.pl +++ b/members/member.pl @@ -115,6 +115,12 @@ if ($results) { } $count = scalar(@$results); } + +if($count == 1){ + print $input->redirect("/cgi-bin/koha/members/moremember.pl?borrowernumber=" . @$results[0]->{borrowernumber}); + exit; +} + my @resultsdata; $to=($count>$to?$to:$count); my $index=$from; -- 1.7.3