[Koha-bugs] [Bug 18419] New: Broken patron-blank image in viewlog.tt
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Apr 11 21:28:21 CEST 2017
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18419
Bug ID: 18419
Summary: Broken patron-blank image in viewlog.tt
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: Templates
Assignee: oleonard at myacpl.org
Reporter: ephetteplace at cca.edu
QA Contact: testopia at bugs.koha-community.org
Created attachment 62062
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=62062&action=edit
screenshot
The theme's patron-blank.png image is incorrectly referenced from the
viewlog.tt template, resulting in a broken image. One can see this by going to
the logs tool, selecting the "Patrons" module, and filling in a borrowernumber
under "object" which matches a patron who does not have a custom image.
Screenshot attached.
I believe this is due to the interaction between line #13 of circ-menu.inc and
lines #58-66 of viewlog.tt. The circ menu include expects a value like
"/intranet-tmpl" for the "interface" variable (this is what's used on
circulation.tt, for instance) while viewlog.tt has a switch statement that
assigns the value "Intranet" to the variable, causing the link to break.
I'd offer a patch except I'm not sure how the interface value is used
throughout viewlog.tt and its includes, or why it appears to refer to the same
interface (the intranet) in two different forms for two different templates.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list