Bug 26851: Don't generate a notice to library if no content
authorNick Clemens <nick@bywatersolutions.com>
Wed, 28 Oct 2020 19:00:28 +0000 (19:00 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 14 Jan 2021 16:21:46 +0000 (17:21 +0100)
commite47ed528b2f952f582b088ab57b82fb4061eebf2
tree9af3426d817d234527eef1ecc4f9120e556ef6ac
parent50ac537d92e4596451f1b673364b74df01ddc629
Bug 26851: Don't generate a notice to library if no content

To test:
 1 - Check out an over due to a patron
 2 - Set overdue triggers to a trigger less than number of days overdue
 3 - Make sure the patron has no email
 4 - Set content of ODUE notice to:
    [%# Comment will not print %]
 5 - perl misc/cronjobs/overdue_notices.pl
 6 - Check the message queue
 7 - There is a notice sent to the library:
    "These messages were not sent directly to the patrons."
    With no messages
 8 - Apply patch
 9 - Repeat
10 - No new message generated

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 9769160083d614601997945f29a0fe9d353bf7ec)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
misc/cronjobs/overdue_notices.pl