From 23f06cc802966b8faf5cf810122cb23bb22b5365 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 4 Jul 2022 17:12:24 +0200 Subject: [PATCH] Bug 30650: Display holds waiting at the logged-in library Not those waiting at the library of the logged-in user --- .../prog/en/modules/circ/curbside_pickups.tt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/curbside_pickups.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/curbside_pickups.tt index 07f4e9d80b4..575534c4f43 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/curbside_pickups.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/curbside_pickups.tt @@ -169,7 +169,7 @@ [% END %] - [% SET waiting_holds = cp.patron.holds.search( found => 'W', branchcode => logged_in_user.branchcode ) %] + [% SET waiting_holds = cp.patron.holds.search( found => 'W', branchcode => Branches.GetLoggedInBranchcode ) %] [% FOREACH h IN waiting_holds %] [% h.biblio.title | html %] ([% h.biblio.author | html %], [% h.item.barcode | html %])
[% END %] @@ -239,7 +239,7 @@ [% END %] - [% SET waiting_holds = cp.patron.holds.search( found => 'W', branchcode => logged_in_user.branchcode ) %] + [% SET waiting_holds = cp.patron.holds.search( found => 'W', branchcode => Branches.GetLoggedInBranchcode ) %] [% FOREACH h IN waiting_holds %] [% h.biblio.title | html %] ([% h.biblio.author | html %], [% h.item.barcode | html %])
[% END %] @@ -321,7 +321,7 @@ [% END %] - [% SET waiting_holds = cp.patron.holds.search( found => 'W', branchcode => logged_in_user.branchcode ) %] + [% SET waiting_holds = cp.patron.holds.search( found => 'W', branchcode => Branches.GetLoggedInBranchcode ) %] [% FOREACH h IN waiting_holds %] [% h.biblio.title | html %] ([% h.biblio.author | html %], [% h.item.barcode | html %])
[% END %] @@ -443,7 +443,7 @@ [% ELSE %] - [% SET waiting_holds = patron.holds.search( found => 'W', branchcode => logged_in_user.branchcode ) %] + [% SET waiting_holds = patron.holds.search( found => 'W', branchcode => Branches.GetLoggedInBranchcode ) %] [% IF !policy.enable_waiting_holds_only || waiting_holds.count > 0 %]
-- 2.25.1