Koha/misc
Nick Clemens 42fdb17d68 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@davidnind.com>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 4bfd1e21c6)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2023-11-07 22:42:43 -10:00
..
admin
bin
cronjobs Bug 35171: Add send_empty option to runreport 2023-11-07 22:42:43 -10:00
devel
interface_customization
maintenance Bug 34505: Patron invalid age in search_for_data_inconsistencies.pl skip expired patrons 2023-08-29 21:17:00 -10:00
migration_tools Bug 32800: Don't embed items for deleted records 2023-04-12 09:26:50 -03:00
release_notes Bug 34954: Fixed typo to 'dateexpiry' 2023-11-07 21:12:40 -10:00
search_tools
translator Translation fixes for Koha 23.05.05 2023-11-07 20:28:01 -10:00
workers Bug 35111: Ignore SIGPIPE in background jobs worker 2023-11-02 10:30:01 -10:00
add_date_fields_to_marc_records.pl Bug 23924: Reset the fields to add 2023-05-05 12:13:53 -03:00
add_statistics_borrowers_categorycode.pl Bug 32922: Remove space in shebang 2023-02-20 09:44:06 -03:00
batchCompareMARCvsFrameworks.pl
batchdeletebiblios.pl
batchDeleteUnusedSubfields.pl
batchImportMARCWithBiblionumbers.pl
batchRebuildBiblioTables.pl
batchRebuildItemsTables.pl
batchRepairMissingBiblionumbers.pl
check_sysprefs.pl
commit_file.pl Bug 15869: Change framework on overlay 2023-02-07 10:32:22 -03:00
export_borrowers.pl
export_records.pl Bug 29811: Add timestamp option on authority record type 2023-11-07 22:20:45 -10:00
exportauth.pl
import_patrons.pl Bug 34743: Fix POD description 2023-09-17 22:19:10 -10:00
koha-install-log
link_bibs_to_authorities.pl Bug 35141: (QA follow-up) Increment the bad count 2023-11-07 21:37:57 -10:00
load_yaml.pl
mod_zebraqueue.pl
perlmodule_ls.pl
perlmodule_rm.pl
process_ill_updates.pl
recreateIssueStatistics.pl
sax_parser_print.pl
sax_parser_test.pl
sip_cli_emulator.pl Bug 34764: Set fee_acknowledged to expect a string 2023-09-17 21:39:02 -10:00
stage_file.pl
z3950_responder.pl