Bug 32892

Summary: Email template used when generating DISCHARGE PDF
Product: Koha Reporter: Tomás Cohen Arazi <tomascohen>
Component: NoticesAssignee: Tomás Cohen Arazi <tomascohen>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: tomascohen
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on: 14251    
Bug Blocks:    

Description Tomás Cohen Arazi 2023-02-06 18:27:19 UTC
The generated PDF discharge letter always picks the 'email' transport by default. This means users expecting to define a 'print' version of the discharge notice get confgused and/or wrong results.


This was highlighted by bug 14251, which fixed styling the PDF with CSS, which is only picked if the 'email' transport letter is used.

It is trivial to see this doesn't work as no transport is passed to GetPreparedLetter, which then defaults to 'email'.