Bugzilla – Attachment 151823 Details for
Bug 33698
Add fields to verbose output of cronjob delete_items.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33698: Add fields to the verbose output that show the barcode and title of items that cannot be deleted
Bug-33698-Add-fields-to-the-verbose-output-that-sh.patch (text/plain), 1.16 KB, created by
Laura Escamilla
on 2023-05-30 18:47:49 UTC
(
hide
)
Description:
Bug 33698: Add fields to the verbose output that show the barcode and title of items that cannot be deleted
Filename:
MIME Type:
Creator:
Laura Escamilla
Created:
2023-05-30 18:47:49 UTC
Size:
1.16 KB
patch
obsolete
>From 2c3b9f50db9b0ace6de040481bf47590ee3e94f8 Mon Sep 17 00:00:00 2001 >From: Laura Escamilla <laura.escamilla@bywatersolutions.com> >Date: Tue, 30 May 2023 18:26:21 +0000 >Subject: [PATCH] Bug 33698: Add fields to the verbose output that show the > barcode and title of items that cannot be deleted > >--- > misc/cronjobs/delete_items.pl | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > >diff --git a/misc/cronjobs/delete_items.pl b/misc/cronjobs/delete_items.pl >index 4473ca51ab..db111e2f5a 100755 >--- a/misc/cronjobs/delete_items.pl >+++ b/misc/cronjobs/delete_items.pl >@@ -83,7 +83,11 @@ DELITEM: while ( my $item = $GLOBAL->{sth}->{target_items}->fetchrow_hashref() ) > if $OPTIONS->{flags}->{commit}; > verbose "Deleting '$item->{itemnumber}'"; > } else { >- verbose sprintf "Item '%s' not deleted: %s", $item->{itemnumber}, @{$safe_to_delete->messages}[0]->message >+ verbose sprintf "Item '%s' (Barcode: '%s', Title: '%s') not deleted: %s", >+ $item->{itemnumber}, >+ $item_object_->barcode, >+ $item_object->biblio->title, >+ @{$safe_to_delete->messages}[0]->message; > } > } > >-- >2.30.2
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 33698
:
151823
|
151846
|
151847
|
151848
|
151849
|
151883
|
152234