Koha-clms/misc/cronjobs
Nick Clemens bac2651c60 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>
2021-05-20 14:52:48 +02:00
..
holds Bug 12656: Allow --reason to be passed to cancel_expired_holds 2020-11-04 12:59:33 +01:00
rss Bug 21395: Make perlcritic happy 2020-06-29 12:37:02 +02:00
social_data
…
thirdparty Bug 27562: itiva notices break if record title contains quotes 2021-05-12 17:14:06 +02: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-01-29 15:37:27 +01: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 24083: (follow-up) Make requested changes 2020-11-11 16:09:58 +01:00
backup.sh
…
batch_anonymise.pl
…
build_browser_and_cloud.pl Bug 21395: Make perlcritic happy 2020-06-29 12:37:02 +02:00
cart_to_shelf.pl
…
check-url-quick.pl
…
check-url.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
cleanup_database.pl Bug 24541: Purge old messages 2021-01-07 15:18:59 +01:00
cloud-kw.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
cloud-sample.conf
…
create_koc_db.pl
…
crontab.example Bug 25245: Add plugins_nightly.pl to the default cron 2021-01-29 14:03:21 +01:00
delete_items.pl Bug 28255: Follow up to bug 23463 - use item_object in misc/cronjobs/delete_items.pl 2021-05-20 14:52:48 +02:00
delete_patrons.pl Bug 14708: Enforce restriction in delete_patrons.pl 2020-11-06 09:40:25 +01:00
delete_records_via_leader.pl Bug 27819: Spurious item deletion errors from delete_records_via_leader.pl 2021-04-30 11:22:38 +02:00
edi_cron.pl Bug 23682: Fix use Koha::Plugins::Handler statements 2020-09-03 15:00:48 +02:00
fines.pl Bug 27835: (follow-up) Update language, remove warn, add feedback 2021-03-22 10:33:27 +01:00
gather_print_notices.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
import_webservice_batch.pl
…
longoverdue.pl Bug 27656: misc/cronjobs/longoverdue.pl better error message 2021-04-22 16:34:59 +02:00
membership_expiry.pl
…
merge_authorities.pl
…
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-14 17:21:46 +01:00
patron_emailer.pl Bug 22755: Fix pod in patron_emailer.pl 2019-04-24 10:43:55 +00:00
plugins_nightly.pl Bug 27820: add all missing use in misc/cronjobs/plugins_nightly.pl 2021-03-12 14:05:23 +01:00
printoverdues.sh
…
process_message_queue.pl Bug 28221: Script process_message_queue.pl uses Try::Tiny but doesn't 'use' it 2021-04-30 10:39:57 +02:00
purge_suggestions.pl
…
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
…
runreport.pl Bug 22343: Fix runreport encoding issues 2020-10-02 15:23:52 +02:00
serialsUpdate.pl Bug 7806: Fix remaining occurrences of 0000-00-00 2021-03-04 10:24:48 +01: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-09-28 16:09:10 +02:00
update_totalissues.pl Bug 21395: Make perlcritic happy 2020-06-29 12:37:02 +02:00