Bug 35286

Summary: Replace GetPrintMessages with Koha::Notice::Messages->search
Product: Koha Reporter: Martin Renvoize <martin.renvoize>
Component: Architecture, internals, and plumbingAssignee: Martin Renvoize <martin.renvoize>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low    
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: 35285    
Bug Blocks:    

Description Martin Renvoize 2023-11-08 10:30:55 UTC
C4::Letters::GetPrintMessages is a very basic wrapper around a simple SQL lookup. We could easily remove it and use Koha::Notice::Messages->search directly instead resulting in Koha::Notice::Message objects in the return.
Comment 1 Martin Renvoize 2023-11-08 10:53:08 UTC
The reason to do this would be to use the methods introduced in bug 35285 so we're consistent with how we output print notices in the browser from the staff client and more directly as the output of gather_print_notices.