Bugzilla – Attachment 37361 Details for
Bug 13894
SQLHelper replacement - C4::Members::Search - reserve.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13894: Fix if the search returns only 1 result
Bug-13894-Fix-if-the-search-returns-only-1-result.patch (text/plain), 1.62 KB, created by
Jonathan Druart
on 2015-03-30 10:07:03 UTC
(
hide
)
Description:
Bug 13894: Fix if the search returns only 1 result
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2015-03-30 10:07:03 UTC
Size:
1.62 KB
patch
obsolete
>From e4f4fe9d1d9b5344c3244f3f2b0bd1762f03eef0 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Mon, 30 Mar 2015 12:05:57 +0200 >Subject: [PATCH] Bug 13894: Fix if the search returns only 1 result > >In the case where only 1 result is returned by the search, the >borrowernumber should be passed correctly. >--- > koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt | 2 +- > reserve/request.pl | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >index 0576020..f72f32e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >@@ -487,7 +487,7 @@ No patron matched <span class="ex">[% message %]</span> > [% END %] > > >-[% IF ( selectborrower ) %] >+[% IF ( borrowers ) %] > [% INCLUDE 'patron-toolbar.inc' %] > > <form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off"> >diff --git a/reserve/request.pl b/reserve/request.pl >index 7d9c5e6..f56079f 100755 >--- a/reserve/request.pl >+++ b/reserve/request.pl >@@ -116,7 +116,7 @@ if ($findborrower) { > ); > my $borrowers = $results->{patrons}; > if ( scalar @$borrowers == 1 ) { >- $borrowernumber_hold = $borrower->[0]->{borrowernumber}; >+ $borrowernumber_hold = $borrowers->[0]->{borrowernumber}; > } elsif ( @$borrowers ) { > $template->param( borrowers => $borrowers ); > } else { >-- >2.1.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 13894
:
37124
|
37171
|
37330
| 37361