[Koha-bugs] [Bug 28255] Follow up to bug 23463 - use item_object in misc/cronjobs/delete_items.pl
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue May 18 14:16:36 CEST 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28255
Kyle M Hall <kyle at bywatersolutions.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #120904|0 |1
is obsolete| |
--- Comment #3 from Kyle M Hall <kyle at bywatersolutions.com> ---
Created attachment 121107
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=121107&action=edit
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 at davidnind.com>
Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list