[Koha-bugs] [Bug 32453] Object methods _result and _resultset methods not available in templates
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Apr 27 18:49:37 CEST 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32453
Lucas Gass <lucas at bywatersolutions.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #150302|0 |1
is obsolete| |
--- Comment #3 from Lucas Gass <lucas at bywatersolutions.com> ---
Created attachment 150310
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=150310&action=edit
Bug 32453: Allow template access to _result/_resultset
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.
Test Plan:
1) Modify the CHECKOUT notice, add "*[% biblio._result %]*" to your
notice
2) Generate a CHECKOUT notice, note you only get "**"
3) Apply this patch
4) Restart all the things!
5) Generate a CHECKOUT notice, note you know get something like
"*Koha::Schema::Result::Biblio=HASH(0x564f907a3390*" in your notice!
Signed-off-by: Lucas Gass <lucas at bywatersolutions.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list