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: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]

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.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to