[Koha-bugs] [Bug 32453] New: Object methods _result and _resultset methods not available in templates

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Dec 12 19:11:23 CET 2022


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

            Bug ID: 32453
           Summary: Object methods _result and _resultset methods not
                    available in templates
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P5 - low
         Component: Templates
          Assignee: oleonard at myacpl.org
          Reporter: kyle at bywatersolutions.com
        QA Contact: testopia at bugs.koha-community.org

There are times where it would be really useful to be able to access the
underying result or resultset within out templates. However, Template Toolkit
itself disallows this, but you can disable this feature by setting the
$Template::Stash::PRIVATE package variable to a false value.

$Template::Stash::PRIVATE = undef;   # now you can thing._private

The alternate would be to rename _result and _resultset or just provide
non-prefixed aliases as result and resultset respectively.

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


More information about the Koha-bugs mailing list