From c7b0c35608a3295bffebc645ab48024b7cec281e Mon Sep 17 00:00:00 2001 From: Henri-Damien LAURENT Date: Thu, 4 Aug 2011 02:57:28 -0400 Subject: [PATCH] Fix for Bug 6669 - If a patron search returns one result, redirect to patron details page Signed-off-by: Nicole C. Engard Signed-off-by: Ian Walls Signed-off-by: Chris Cormack --- members/member.pl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/members/member.pl b/members/member.pl index 2be45bc79b..724c99655b 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; -- 2.39.5