From f1bcea4d1094a314c358f18875c0dac02fdc2f51 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 --- koha-tmpl/intranet-tmpl/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 7e51d67..92e01eb 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.1.4