From 921849fa97b907af6bbec47f79a4c9b9deea9caf Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 1 Oct 2018 13:42:07 -0300 Subject: [PATCH] Bug 21463: (bug 18789 follow-up) Fix library display on the overdue list view MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit branchcode is no longer retrieved from the SQL query, we should use the Koha::Patron object instead. Test plan: Create some overdues and list them on Home › Circulation › Overdues => With this patch applied you should see that the "Library" column is correctly filled with the patron's library name Signed-off-by: Pierre-Marc Thibault --- koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tt index 872faf9..496d1f8 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tt @@ -66,7 +66,7 @@ [% IF ( overdueloo.email ) %][email][% END %] [% IF ( overdueloo.phone ) %]([% overdueloo.phone | html %])[% ELSIF ( overdueloo.mobile ) %]([% overdueloo.mobile | html %])[% ELSIF ( overdueloo.phonepro ) %]([% overdueloo.phonepro | html %])[% END %] [% END %] - [% IF overdueloo.branchcode %][% Branches.GetName( overdueloo.branchcode ) | html %][% END %] + [% Branches.GetName( overdueloo.patron.branchcode ) | html %] [% INCLUDE 'biblio-default-view.inc' biblionumber = overdueloo.biblionumber %][% overdueloo.title | html %] [% overdueloo.subtitle | html %] [% IF ( overdueloo.author ) %], by [% overdueloo.author | html %][% END %][% IF ( overdueloo.enumchron ) %], [% overdueloo.enumchron | html %][% END %] [% overdueloo.barcode | html %] [% overdueloo.itemcallnumber | html %] -- 2.7.4