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

--- Comment #2 from Kyle M Hall <[email protected]> ---
Created attachment 165227
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=165227&action=edit
Bug 36654: Add template toolkit function to get arbitrary Koha::Objects

A lot of older notice data include identifiers but not the objects themselves.
We should have a helper TT plugin to make getting those objects easy.

Test Plan:
1) prove t/db_dependent/Koha/Template/Plugin/Koha.t
2) Set the CHECKOUT notice to:

[% USE Koha %]
[% SET b = Koha.GetObjectById('Koha::Biblios', b.biblionumber );
[% b.title %]

3) Note the notice contains the checkout title

-- 
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