From b98336a09d00bcb970173c535c8f51de5dd64ce4 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=utf8 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 Signed-off-by: Katrin Fischer Signed-off-by: Nick Clemens (cherry picked from commit f27787d364ae080ce6a815ba07e8813fce48b2da) Signed-off-by: Martin Renvoize --- .../intranet-tmpl/prog/en/modules/circ/overdue.tt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 12966ed356..3bb16fdd37 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tt @@ -65,11 +65,11 @@ [% IF ( overdueloo.email ) %][email][% END %] [% IF ( overdueloo.phone ) %]([% overdueloo.phone %])[% ELSIF ( overdueloo.mobile ) %]([% overdueloo.mobile %])[% ELSIF ( overdueloo.phonepro ) %]([% overdueloo.phonepro %])[% END %] [% END %] - [% IF overdueloo.branchcode %][% Branches.GetName( overdueloo.branchcode ) %][% END %] - [% INCLUDE 'biblio-default-view.inc' biblionumber = overdueloo.biblionumber %][% overdueloo.title |html %] [% overdueloo.subtitle %] [% IF ( overdueloo.author ) %], by [% overdueloo.author %][% END %][% IF ( overdueloo.enumchron ) %], [% overdueloo.enumchron %][% END %] - [% overdueloo.barcode %] - [% overdueloo.itemcallnumber %] - [% overdueloo.replacementprice %] + [% 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 %] + [% overdueloo.replacementprice | html %] [% END %] -- 2.39.5