[Koha-bugs] [Bug 35171] runreport.pl cronjob should optionally send an email when the report has no results
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Oct 30 21:00:21 CET 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35171
Victor Grousset/tuxayo <victor at tuxayo.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #158016|0 |1
is obsolete| |
--- Comment #4 from Victor Grousset/tuxayo <victor at tuxayo.net> ---
Created attachment 158102
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=158102&action=edit
Bug 35171: Add send_empty option to runreport
This patch adds a new 'send_empty' option to runreport.pl
To test:
1 - Create a report in Koha that will not return any results:
SELECT barcode FROM items WHERE 1=2
2 - perl misc/cronjobs/runreport.pl 1
3 - Output is: NO OUTPUT: 0 results from execute_query
4 - perl misc/cronjobs/runreport.pl 1 --send_empty
5 - Output is: no results were returned for the report
6 - perl misc/cronjobs/runreport.pl 1 --send_empty --email
7 - It will die on an email error unless you have SMTP configured - this si
good, it means we sent an email
8 - Bonus points: Test on a system that can correctly send emails, confirm it
works :-)
Signed-off-by: David Nind <david at davidnind.com>
Signed-off-by: Victor Grousset/tuxayo <victor at tuxayo.net>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list