Bug 38306: Only print EnhancedMessagingPreferences warning if run with verbose
This enhancement will amend the automatic_renewals.pl script to only print a warning about the EnhancedMessagingPreferences system preference being disabled if the script was run with verbose. To test: 1. Disable EnhancedMessagingPreferences 2. Run misc/cronjobs/automatic_renewals.pl 3. Notice the warning is printed 4. Apply the patch and restart services 5. Run misc/cronjobs/automatic_renewals.pl and notice the warning is not printed 6. Run misc/cronjobs/automatic_renewals.pl --verbose and notice the warning is printed 7. Enable EnhancedMessagingPreferences 8. Run misc/cronjobs/automatic_renewals.pl and notice the warning is not printed Sponsored-by: Catalyst IT Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
378847a3ae
commit
a7bd032aff
|
|
@ -121,7 +121,7 @@ END_WARN
|
|||
# Since advance notice options are not visible in the web-interface
|
||||
# unless EnhancedMessagingPreferences is on, let the user know that
|
||||
# this script probably isn't going to do much
|
||||
if ( !C4::Context->preference('EnhancedMessagingPreferences') ) {
|
||||
if ( !C4::Context->preference('EnhancedMessagingPreferences') && $verbose ) {
|
||||
warn <<'END_WARN';
|
||||
|
||||
The "EnhancedMessagingPreferences" syspref is off.
|
||||
|
|
|
|||
Loading…
Reference in New Issue