Bugzilla – Attachment 54530 Details for
Bug 14504
Add command-line script to batch delete items based on data in items table
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14504: (QA followup) Fix error causing item not to be deleted
Bug-14504-QA-followup-Fix-error-causing-item-not-t.patch (text/plain), 1.16 KB, created by
Barton Chittenden
on 2016-08-16 20:39:44 UTC
(
hide
)
Description:
Bug 14504: (QA followup) Fix error causing item not to be deleted
Filename:
MIME Type:
Creator:
Barton Chittenden
Created:
2016-08-16 20:39:44 UTC
Size:
1.16 KB
patch
obsolete
>From ca85cb6fb07851667e1134c7eec2409bc0147d3b Mon Sep 17 00:00:00 2001 >From: Barton Chittenden <barton@bywatersolutions.com> >Date: Tue, 16 Aug 2016 20:27:16 +0000 >Subject: [PATCH] Bug 14504: (QA followup) Fix error causing item not to be > deleted > >--- > misc/cronjobs/delete_items.pl | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/misc/cronjobs/delete_items.pl b/misc/cronjobs/delete_items.pl >index 0e9e8d1..88a6bc0 100755 >--- a/misc/cronjobs/delete_items.pl >+++ b/misc/cronjobs/delete_items.pl >@@ -57,9 +57,9 @@ $GLOBAL->{sth}->{target_items}->execute(); > > DELITEM: while ( my $item = $GLOBAL->{sth}->{target_items}->fetchrow_hashref() ) { > >- my $status = C4::Items::ItemSafeToDelete( $item->{itemnumber}, $item->{biblionumber} ); >+ my $status = C4::Items::ItemSafeToDelete( $item->{biblionumber}, $item->{itemnumber} ); > if( $status eq '1' ) { >- C4::Items::DelItemCheck( $item->{itemnumber}, $item->{biblionumber} ); >+ C4::Items::DelItemCheck( $item->{biblionumber}, $item->{itemnumber} ); > verbose "Deleting '$item->{itemnumber}'"; > } else { > verbose "Item '$item->{itemnumber}' not deletd: $status"; >-- >2.1.4
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 14504
:
40830
|
42978
|
43445
|
43533
|
43788
|
43789
|
44013
|
44149
|
45789
|
49648
|
49649
|
49650
|
49651
|
49652
|
49653
|
52425
|
53224
|
53225
|
54514
|
54515
|
54516
|
54517
|
54518
|
54519
|
54520
|
54521
|
54522
|
54525
|
54530
|
54531
|
54691
|
54692
|
54693
|
54694
|
54695
|
54696
|
54697
|
54698
|
54699
|
54700
|
54701
|
54702
|
54703