Fix for Bug 6669 - If a patron search returns one result, redirect to patron details...
authorHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Thu, 4 Aug 2011 06:57:28 +0000 (02:57 -0400)
committerChris Cormack <chrisc@catalyst.net.nz>
Thu, 4 Aug 2011 22:26:52 +0000 (10:26 +1200)
Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>
Signed-off-by: Ian Walls <ian.walls@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
members/member.pl

index 2be45bc..724c996 100755 (executable)
@@ -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;