]> 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)
committerKyle Hall <kyle@bywatersolutions.com>
Fri, 14 Jan 2022 13:36:42 +0000 (08:36 -0500)
commit774aac8c2118ff846d6b5ba8d9a9a7d036369212
treedac6b4a7fd56153096316ab185c26f5156ee3a75
parent7e66a5c3e6b12e4d8a2eab875e185933ec65a805
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>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
misc/cronjobs/delete_items.pl