Bugzilla – Attachment 75743 Details for
Bug 20840
Internal Server Error when clicking on "Details" button
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20840: (bug 2696 follow-up) Fix biblio info fetch
Bug-20840-bug-2696-follow-up-Fix-biblio-info-fetch.patch (text/plain), 1.84 KB, created by
Owen Leonard
on 2018-06-01 17:23:54 UTC
(
hide
)
Description:
Bug 20840: (bug 2696 follow-up) Fix biblio info fetch
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2018-06-01 17:23:54 UTC
Size:
1.84 KB
patch
obsolete
>From f1bcea4d1094a314c358f18875c0dac02fdc2f51 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >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 <oleonard@myacpl.org> >--- > 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 ) %] >- <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% accountline.biblionumber %]&itemnumber=[% accountline.itemnumber %]">[% accountline.title |html %]</a> >+ [% SET biblio = accountline.item.biblio %] >+ <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% biblio.biblionumber %]&itemnumber=[% accountline.itemnumber %]">[% biblio.title |html %]</a> > [% END %] > </td> > >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 20840
:
75692
|
75738
|
75742
|
75743
|
75744