Bugzilla – Attachment 129014 Details for
Bug 29794
delete_items.pl missing include
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29794: Add missing include in delete_items.pl
Bug-29794-Add-missing-include-in-deleteitemspl.patch (text/plain), 1.17 KB, created by
Lucas Gass (lukeg)
on 2022-01-04 21:29:42 UTC
(
hide
)
Description:
Bug 29794: Add missing include in delete_items.pl
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2022-01-04 21:29:42 UTC
Size:
1.17 KB
patch
obsolete
>From 49ca2ab4adfb59d8e7100570b9d3075607380691 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Tue, 4 Jan 2022 16:51:18 -0300 >Subject: [PATCH] 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> >--- > misc/cronjobs/delete_items.pl | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/misc/cronjobs/delete_items.pl b/misc/cronjobs/delete_items.pl >index 93a00c6c1f..3cbe5accc3 100755 >--- a/misc/cronjobs/delete_items.pl >+++ b/misc/cronjobs/delete_items.pl >@@ -7,6 +7,8 @@ use C4::Context; > use Modern::Perl; > use Pod::Usage qw( pod2usage ); > >+use Koha::Items; >+ > my $dbh = C4::Context->dbh(); > > my $query = { >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 29794
:
129011
|
129012
| 129014 |
129015
|
129017