[Koha-bugs] [Bug 28650] New: Assumed branchcode variable appears to be empty

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jul 2 09:00:39 CEST 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28650

            Bug ID: 28650
           Summary: Assumed branchcode variable appears to be empty
 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: m.de.rooy at rijksmuseum.nl
        QA Contact: testopia at bugs.koha-community.org

Found on bug 27948, but it occurs more often.
We expect the variable branchcode in the template just like e.g. the lang
variable. And we use it in a call to KohaNews.get.
Example from opac-suggestions template:

[% SET opacsuggestion = KohaNews.get( location => "OpacSuggestioninstructions",
lang => lang, library => branchcode ) %]

But unfortunately we do not have a general branchcode variable.
So what we get is the All branches output, not the branch one.

Should we fill branchcode in Auth.pm? Or call Branches.GetLoggedInBranchcode in
the template?

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list