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

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.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://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