https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29230
Marcel de Rooy <m.de.r...@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #130044|0 |1 is obsolete| | --- Comment #18 from Marcel de Rooy <m.de.r...@rijksmuseum.nl> --- Created attachment 130097 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=130097&action=edit Bug 29230: Add Koha::Patron->messages Add methods to return the messages attached to a patron. It will add the capability to access them from notice templates. Test plan: Define some messages for a given patron Go to the circulation page of the patron and confirm that they are still displayed Test the notice templates: Add to HOLD_SLIP the following content """ [% SET messages = borrower.messages %] [% IF messages.count %] Messages: <ul> [% FOR m IN messages.search( message_type => 'L' ) %] <li>[% m.message %]</li> [% END %] </ul> [% END %] """ To display all the messages from staff ('L') Adapt following your needs. Signed-off-by: Fridolin Somers <fridolin.som...@biblibre.com> Signed-off-by: Stina Hallin <stina.hal...@ub.lu.se> Signed-off-by: Marcel de Rooy <m.de.r...@rijksmuseum.nl> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list Koha-bugs@lists.koha-community.org 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/