From 73518280966409bc3c112bc37e1f53dcb295b974 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 1 Jun 2018 13:54:53 -0300 Subject: [PATCH] Bug 20840: (bug 2696 follow-up) Fix biblio info fetch There is no accountlines.biblionumber field, if the account line is linked to an item, accountline-details.pl will explode with: Template process failed: undef error - The method biblionumber is not covered by tests! Test plan: Create a fine for a given item Pay the fine View the detail of the account line => Without this patch you get a software error => With this patch applied you will see the biblio's title Signed-off-by: Owen Leonard Signed-off-by: Katrin Fischer Signed-off-by: Nick Clemens Signed-off-by: Martin Renvoize --- .../prog/en/modules/members/accountline-details.tt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/accountline-details.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/accountline-details.tt index 7e51d67140..92e01eb9dd 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/accountline-details.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/accountline-details.tt @@ -51,7 +51,8 @@   [% IF ( accountline.itemnumber ) %] - [% accountline.title |html %] + [% SET biblio = accountline.item.biblio %] + [% biblio.title |html %] [% END %] -- 2.39.5