Bug 29054: Add verbose check for warn in advance_notices.pl
authorHayley Pelham <hayleypelham@catalyst.net.nz>
Mon, 20 Sep 2021 04:23:11 +0000 (04:23 +0000)
committerKyle Hall <kyle@bywatersolutions.com>
Mon, 7 Feb 2022 12:05:22 +0000 (07:05 -0500)
commitf15c9462e30ce3b813a63bd395bc2f74ab9c309b
tree7a80327f587d6f0af510413db9045b8fe00afe92
parentbabd32dc5cd17bedb33dbeb683761ba46b361883
Bug 29054: Add verbose check for warn in advance_notices.pl

To test:
1) Set EnhancedMessagingPreferences to Don't allow
2) In the koha-shell, run misc/cronjobs/advance_notices.pl -c
3) Note that you see the warning "The "EnhancedMessagingPreferences"
syspref is off... etc."
4) Apply the patch and restart services
5) In the koha-shell, run misc/cronjobs/advance_notices.pl -c and note
the warning no longer shows
6) Still in the shell, run misc/cronjobs/advance_notices.pl -c -v and
note the warning does show

Sponsored-by: Catalyst IT
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
misc/cronjobs/advance_notices.pl