]> git.koha-community.org Git - koha.git/commit
Bug 29794: Add missing include in delete_items.pl
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 4 Jan 2022 19:51:18 +0000 (16:51 -0300)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 10 Jan 2022 07:04:17 +0000 (21:04 -1000)
commitdb5c5c0bc724e1583f7741b0a7ed74ca97fd0cd4
tree74fbbeca42ec96b42f8e2565d05f627e99b93cd9
parent60f6fe17f436c26e45c8b011aefc16e86e7a1486
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@bywatersolutions.com>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
misc/cronjobs/delete_items.pl