[Koha-bugs] [Bug 28514] C4::Letters::getletter must be rewritten

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jun 9 10:29:06 CEST 2021


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

Martin Renvoize <martin.renvoize at ptfs-europe.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #121628|0                           |1
        is obsolete|                            |

--- Comment #2 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
Created attachment 121727
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=121727&action=edit
Bug 28514: Remove getletter

The way we handle notice templates is confusing (see bug 27660, bug 26787, bug
28487).

This patch remove C4::Letters::getletter and use either
Koha::Notice::Templates->find
or the newly created methods ->find_effective_template that will do
all necessary to return the correct template.

Test plan:
- Create and modify notice templates
- Make sure you have TranslateNotices turned on and that some notices
templates have a translated version
- Use holds_reminder.pl and overdue_notices.pl cronjobs and confirm that
the generated notices are the expected ones
- Test also pos/printreceipt.pl
- And finally test some other notices (CHECKIN, RENEWAL for instance)

Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.com>

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


More information about the Koha-bugs mailing list