Koha-clms/misc/cronjobs
Nick Clemens cd66aa48de Bug 28255: Follow up to bug 23463 - use item_object in misc/cronjobs/delete_items.pl
This looks like just an assumption that the $item variable was an object

Correct the code to use $item_object

To test:
1 - perl misc/cronjobs/delete_items.pl -where="barcode LIKE '%8'" --commit --verbose
2 - Can't call method "safe_delete" on unblessed reference at /usr/share/koha/bin/cronjobs/delete_items.pl line 67.
3 - Apply patch
4 - Repeat
5 - Success! You deleted a bunch of items

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 423421eb64)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit bac2651c60)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
2021-05-25 14:21:24 +00:00
..
holds Bug 21395: Make perlcritic happy 2020-07-13 16:44:43 +00:00
rss Bug 21395: Make perlcritic happy 2020-07-13 16:44:43 +00:00
social_data Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
thirdparty Bug 27562: itiva notices break if record title contains quotes 2021-05-25 13:22:46 +00:00
CONFIGURE.gmail Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
advance_notices.pl Bug 11344: (QA follow-up) Fix empty section warning 2021-02-04 21:27:41 +00:00
archive_purchase_suggestions.pl Bug 22784: Add a cronjob to archive suggestions given age or status criteria 2020-04-14 16:22:02 +01:00
automatic_item_modification_by_age.pl Bug 20101: Cronjob automatic_item_modification_by_age.pl does not log run in action logs 2020-04-17 09:17:52 +01:00
automatic_renewals.pl Bug 25758: Return on_reserve over too_soon when not calling from automatic_renewals cron 2020-11-20 20:11:46 +00:00
backup.sh
…
batch_anonymise.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
build_browser_and_cloud.pl Bug 21395: Make perlcritic happy 2020-07-13 16:44:43 +00:00
cart_to_shelf.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
check-url-quick.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
check-url.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
cleanup_database.pl Bug 24114: (QA follow-up) Fix counts for lock, anonymize and delete 2020-02-24 13:17:39 +00:00
cloud-kw.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
cloud-sample.conf
…
create_koc_db.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
crontab.example Bug 24526: Add the confirm flag to the cronjob files 2020-02-10 10:13:35 +00:00
delete_items.pl Bug 28255: Follow up to bug 23463 - use item_object in misc/cronjobs/delete_items.pl 2021-05-25 14:21:24 +00:00
delete_patrons.pl Bug 14708: Enforce restriction in delete_patrons.pl 2020-12-09 21:37:58 +00:00
delete_records_via_leader.pl Bug 27819: Spurious item deletion errors from delete_records_via_leader.pl 2021-05-24 19:12:52 +00:00
edi_cron.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
fines.pl Bug 27835: (follow-up) Update language, remove warn, add feedback 2021-03-23 19:03:14 +00:00
gather_print_notices.pl Bug 21395: Make perlcritic happy 2020-07-13 16:44:43 +00:00
import_webservice_batch.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
longoverdue.pl Bug 27656: misc/cronjobs/longoverdue.pl better error message 2021-04-25 16:51:20 +00:00
membership_expiry.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
merge_authorities.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
notice_unprocessed_suggestions.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
overdue_notices.pl Bug 26851: Don't generate a notice to library if no content 2021-01-22 16:12:21 +00:00
patron_emailer.pl Bug 22755: Fix pod in patron_emailer.pl 2019-04-24 10:43:55 +00:00
printoverdues.sh
…
process_message_queue.pl Bug 28221: Script process_message_queue.pl uses Try::Tiny but doesn't 'use' it 2021-05-24 18:32:47 +00:00
purge_suggestions.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
reconcile_balances.pl Bug 24266: (alternate patch) Only use defined borrowernumbers in reconcile_balances.pl cron 2020-04-14 08:21:31 +01:00
remove_temporary_edifiles.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
runreport.pl Bug 16219: (QA follow-up) Tiny regex change 2019-08-13 11:55:17 +01:00
serialsUpdate.pl Bug 7806: [20.05] Fix remaining occurrences of 0000-00-00 2021-03-08 14:26:22 +00:00
share_usage_with_koha_community.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
sitemap.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
staticfines.pl Bug 22589: Remove C4::Overdues::BorType 2020-03-24 10:57:55 +00:00
stockrotation.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
update_patrons_category.pl Bug 25624: Add --where option to update_patrons_category.pl 2020-10-20 14:09:57 +00:00
update_totalissues.pl Bug 21395: Make perlcritic happy 2020-07-13 16:44:43 +00:00