[Koha-bugs] [Bug 29794] delete_items.pl missing include

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jan 4 22:29:42 CET 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29794

--- Comment #3 from Lucas Gass <lucas at bywatersolutions.com> ---
Created attachment 129014
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=129014&action=edit
Bug 29794: Add missing include in delete_items.pl

This patch adds a missing include so the script is no longer broken.

To test:
1. Choose an item that is checked out and copy its barcode
2. Run:
   $ kshell
  k$ perl misc/cronjobs/delete_items.pl --verbose \
          --where "barcode='39999000010831'"
=> FAIL: It explodes with:
Can't locate object method "find" via package "Koha::Items"...
3. Apply this patch
4. Repeat 2
=> SUCCESS: You get:
Where statement:  where barcode='39999000010831'
Item '549' not deleted: book_on_loan
5. Sign off :-D

Signed-off-by: Lucas Gass <lucas at bywatersolutions.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list