Koha/misc/cronjobs
Pedro Amorim fac7bb247a
Bug 33900: Fix handling of due_digest
Test plan, on k-t-d
1) Go to 'my account'
2) On 'Patron messaging preferences', click 'Edit'
3) On the 'Item due' row, check the 'Email' and 'Digests only' checkboxes and save
4) On the top search bar, press 'Check out' and enter '42' (koha user cardnumber)
5) On the checkout input bar, enter a barcode e.g. 39999000001372 and press checkout
6) Run the following query to force the due_date to be equal to 'todays' date:
NOTE: change the YYYY-MM-DD below to whatever day it is you're running this test plan

UPDATE issues SET date_due = '2023-06-05 23:59:00' where issue_id = 1;

7) Run the cronjob:
./koha/misc/cronjobs/advance_notices.pl -c --digest-per-branch

8) Notice it hangs, it's stuck on an infinite loop on the 2nd while cycle after if ()
9) Cancel the cronjob script, apply patch
10) Run the cronjob script again (step 7), notice it finishes
11) Access patron's notices:
/cgi-bin/koha/members/notices.pl?borrowernumber=51

Check that the 'Item due reminder' notice is there.

Signed-off-by: Sam Lau <samalau@gmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-06-08 08:32:39 -03:00
..
holds Bug 32518: (QA follow-up) Fix alignment 2023-03-02 14:46:17 -03:00
recalls
rss
social_data
thirdparty
advance_notices.pl Bug 33900: Fix handling of due_digest 2023-06-08 08:32:39 -03:00
archive_purchase_suggestions.pl
automatic_checkin.pl
automatic_item_modification_by_age.pl
automatic_renewals.pl Bug 31735: Avoid re-fetcing objects from database by passing them directly instead of ids to various subroutines 2023-05-12 12:40:21 -03:00
backup.sh
batch_anonymise.pl
build_browser_and_cloud.pl
cart_to_shelf.pl
check-url-quick.pl
cleanup_database.pl Bug 32686: Specify action of action_logs to purge 2023-04-06 10:03:08 -03:00
cloud-kw.pl
cloud-sample.conf
CONFIGURE.gmail
create_koc_db.pl
crontab.example
delete_items.pl Bug 32922: Remove space in shebang 2023-02-20 09:44:06 -03:00
delete_patrons.pl
delete_records_via_leader.pl
edi_cron.pl
fines.pl Bug 33649: Fix use of cronlogaction 2023-05-05 10:18:37 -03:00
gather_print_notices.pl
import_webservice_batch.pl
longoverdue.pl
membership_expiry.pl Bug 23773: Send membership expiry notices by sms too 2023-05-18 11:35:14 -03:00
merge_authorities.pl
notice_unprocessed_suggestions.pl
overdue_notices.pl Bug 29354: Make overdue_notices.pl send .html 2023-03-14 08:49:31 -03:00
patron_emailer.pl
plugins_nightly.pl
printoverdues.sh
process_message_queue.pl Bug 33649: Fix use of cronlogaction 2023-05-05 10:18:37 -03:00
purge_suggestions.pl
reconcile_balances.pl
remove_temporary_edifiles.pl
runreport.pl Bug 33285: (QA follow-up) add POD and fix some code style 2023-04-06 09:29:24 -03:00
serialsUpdate.pl
share_usage_with_koha_community.pl
sitemap.pl
staticfines.pl
stockrotation.pl
update_patrons_category.pl
update_totalissues.pl
writeoff_debts.pl