From 3339dc93132252661ee2a966ecce06a8ee4f452c Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 28 Jan 2022 14:46:38 +0100 Subject: [PATCH] Bug 28782: Fix link when placing a hold for a patron from patron list Signed-off-by: Fridolin Somers --- .../prog/en/includes/circ-patron-search-results.inc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-patron-search-results.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-patron-search-results.inc index a69466eb01..f7ab99ba93 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-patron-search-results.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-patron-search-results.inc @@ -17,10 +17,12 @@ [% borrower.surname | html %], [% borrower.firstname | html %] [% ELSIF destination == "holds" %] + [% SET data_url = "/cgi-bin/koha/reserve/request.pl?borrowernumber=" _ borrower.borrowernumber %] + [% FOREACH biblionumber IN biblionumbers %] + [% SET data_url = data_url _ "&biblionumber=" _ biblionumber %] + [% END %] [% IF multi_hold %] - [% SET data_url = "/cgi-bin/koha/reserve/request.pl?borrowernumber=" _ borrower.borrowernumber _ "&multi_hold=1&biblionumbers=" _ biblionumbers %] - [% ELSE %] - [% SET data_url = "/cgi-bin/koha/reserve/request.pl?borrowernumber=" _ borrower.borrowernumber _ "&biblionumber=" _ biblionumber %] + [% SET data_url = data_url _ "&multi_hold=1" %] [% END %] [% borrower.surname | html %], [% borrower.firstname | html %] -- 2.39.5