Bug 24072: Typos in advance_notices.pl causes DUEDGST not to be sent
authorMagnus Enger <magnus@libriotech.no>
Wed, 20 Nov 2019 14:15:15 +0000 (15:15 +0100)
committerLucas Gass <lucas@bywatersolutions.com>
Mon, 16 Dec 2019 21:41:50 +0000 (21:41 +0000)
commit9e969e0f7b0f556dcd947c9db482540174f3f1ca
tree3e83f1961b4e65250b34309a3328f57921338807
parent2db1ef5944316ebf44f8eef6c31c9dbe038f62bc
Bug 24072: Typos in advance_notices.pl causes DUEDGST not to be sent

There are two typos in advance_notics.pl that cause DUEDGST messages
not to be sent. See Bugzilla for full details.

If you think the typo is sufficiently obvious, you can just eyeball the
patch and sign off, methinks. Otherwise, testing can be done something
like this:
- Make sure you have enabled enhanced messaging preferences, and a
  patron with "Email" and "Digests only" set for "Item due" messages
- Issue an item to this patron, with due date today
- Run something like this to generate advance notices:
  $ sudo koha-shell -c "perl \
  /home/vagrant/kohaclone/misc/cronjobs/advance_notices.pl -n -c" kohadev
- See that no notices are shown (-n means messages will go to stdout,
  instead of into the message queue).
- Apply the patch and run advance_notices.pl again, as before. A DUEDGST
  message should now be displayed.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 1f3a9722e4f8d32c7a839137252fc935ad599f74)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
misc/cronjobs/advance_notices.pl