Bug 19966: Add ability to pass objects directly to slips and notices
authorKyle M Hall <kyle@bywatersolutions.com>
Fri, 23 Jul 2021 12:07:59 +0000 (08:07 -0400)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 8 Jul 2022 18:39:57 +0000 (15:39 -0300)
commit3a154af7f10d5708733ab635533c2ef6a0e48ba5
tree51cd09e4737f049473f4c0bcd80c076f62134851
parente3311ebffc2b2965239674501cf56818c9e90cec
Bug 19966: Add ability to pass objects directly to slips and notices

Koha spends an incredible amount of time on parsing and processing parameters
passed in to slips and notices. It would be immensely more efficient to be able
to pass objects directly to GetPreparedLetter so it doesn't need to do any
fetching / processing on them.

Test plan:
1) Apply this patch
2) prove t/db_dependent/Letters/TemplateToolkit.t

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
C4/Letters.pm
t/db_dependent/Letters/TemplateToolkit.t