Koha-clms/misc/cronjobs
Kyle Hall 32469eb7e0 Bug 32656: Script delete_records_via_leader.pl no longer deletes items
Bug 29788 inadvertantly replaced a call to safe_delete() with safe_to_delete()
such that any time the script should delete an item it only checks to see if
the item is delectable, after which deletion of the record fails because the
items were not deleted.

Test Plan:
1) Mark a record with items to be deleted via the record leader
2) Run delete_records_via_leader.pl -i -b -v
3) Note the script says it is deleting the items but then the record
   deletion fails. Note the items remain in the items table of the
   database.
4) Apply this patch
5) Repeat step 2
6) This time the items and record should be deleted!

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 790f00781a)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
(cherry picked from commit 03a9b13958)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 0f430ce9a8)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
2023-02-17 13:08:29 +01:00
..
holds Bug 31540: Exclude expired holds from the reminder job 2022-12-14 10:43:15 +01:00
rss Bug 17600: Fix POSIX imports 2021-07-29 14:37:26 +02:00
social_data Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
thirdparty Bug 31356: Use hold expiration date instead of adding days to the waiting date 2022-11-14 12:10:53 +01:00
CONFIGURE.gmail Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
advance_notices.pl Bug 20457: Overdue and pre-overdue cronjobs not skipping phone notices 2022-12-14 13:06:13 +01:00
archive_purchase_suggestions.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
automatic_checkin.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
automatic_item_modification_by_age.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
automatic_renewals.pl Bug 28553: (QA follow-up) default to auto renew email when cron switched used 2022-11-14 16:52:59 +01:00
backup.sh Bug 9235 - Hardcoded values in cronjobs/backup.sh 2012-12-21 07:20:50 -05:00
batch_anonymise.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
build_browser_and_cloud.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
cart_to_shelf.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
check-url-quick.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
cleanup_database.pl Bug 31776: Fix a typo in cleanup_database.pl cronjob's help/usage 2022-12-16 14:28:47 +01:00
cloud-kw.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
cloud-sample.conf Fixes bugs #2875-2879 2008-12-29 19:59:44 -06:00
create_koc_db.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
crontab.example Bug 23207: (QA follow-up) Add to cron files 2021-04-22 11:11:05 +02:00
delete_items.pl Bug 29794: (follow-up) Add license 2022-01-14 08:36:47 -05:00
delete_patrons.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
delete_records_via_leader.pl Bug 32656: Script delete_records_via_leader.pl no longer deletes items 2023-02-17 13:08:29 +01:00
edi_cron.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
fines.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
gather_print_notices.pl Bug 29501: Use the default transport 2022-04-08 08:32:28 -04:00
import_webservice_batch.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
longoverdue.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
membership_expiry.pl Bug 28456: Add WHERE option to membership_expiry cronjob 2021-08-30 17:02:07 +02:00
merge_authorities.pl Bug 17600: Fix missing C4::AuthoritiesMARC import 2021-07-29 15:34:25 +02:00
notice_unprocessed_suggestions.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
overdue_notices.pl Bug 20457: Overdue and pre-overdue cronjobs not skipping phone notices 2022-12-14 13:06:13 +01:00
patron_emailer.pl Bug 31282: Fix broken characters in patron_emailer.pl verbose mode 2022-10-19 05:07:19 +02:00
plugins_nightly.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
printoverdues.sh Bug 10127 : Printoverdues.sh should tar only pdf files 2013-07-16 15:47:13 +00:00
process_message_queue.pl Bug 27265: (QA follow-up) Typo on L99 cron script 2022-12-22 19:39:14 +01:00
purge_suggestions.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
reconcile_balances.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
remove_temporary_edifiles.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
runreport.pl Bug 26669: Last Run if report not always updated 2022-04-08 10:46:13 -04:00
serialsUpdate.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
share_usage_with_koha_community.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
sitemap.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
staticfines.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
stockrotation.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
update_patrons_category.pl Bug 31249: Use cronlogaction on update_patrons_category.pl 2022-10-12 15:34:43 +02:00
update_totalissues.pl Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
writeoff_debts.pl Bug 28994: Fix logical errors with amount vs amoutoutstanding 2021-11-15 12:38:39 +01:00