Bugzilla – Attachment 42699 Details for
Bug 14597
Reverting a batch where a record overlaid is now deleted will fail
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14597 [QA Followup] - Make Logger package level
Bug-14597-QA-Followup---Make-Logger-package-level.patch (text/plain), 1.60 KB, created by
Kyle M Hall (khall)
on 2015-09-18 11:03:47 UTC
(
hide
)
Description:
Bug 14597 [QA Followup] - Make Logger package level
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2015-09-18 11:03:47 UTC
Size:
1.60 KB
patch
obsolete
>From db4b48aa0955ba4120489e2d81a245899f01420d Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Fri, 18 Sep 2015 07:03:13 -0400 >Subject: [PATCH] Bug 14597 [QA Followup] - Make Logger package level > >--- > C4/ImportBatch.pm | 5 +++-- > 1 files changed, 3 insertions(+), 2 deletions(-) > >diff --git a/C4/ImportBatch.pm b/C4/ImportBatch.pm >index 9f9c91c..cb1a231 100644 >--- a/C4/ImportBatch.pm >+++ b/C4/ImportBatch.pm >@@ -83,6 +83,8 @@ BEGIN { > ); > } > >+our $logger = Koha::Logger->get( { category => 'C4.ImportBatch' } ); >+ > =head1 NAME > > C4::ImportBatch - manage batches of imported MARC records >@@ -813,7 +815,6 @@ sub BatchCommitItems { > sub BatchRevertRecords { > my $batch_id = shift; > >- my $logger = Koha::Logger->get( { category => 'C4.ImportBatch.BatchRevertRecords' } ); > $logger->trace("C4::ImportBatch::BatchRevertRecords( $batch_id )"); > > my $record_type; >@@ -872,7 +873,7 @@ sub BatchRevertRecords { > my $biblionumber = $rowref->{'matched_biblionumber'}; > my $oldbiblio = GetBiblio($biblionumber); > >- $logger->info("Biblio record $biblionumber does not exist, restoration of this record was skipped") unless $oldbiblio; >+ $logger->info("C4::ImportBatch::BatchRevertRecords: Biblio record $biblionumber does not exist, restoration of this record was skipped") unless $oldbiblio; > next unless $oldbiblio; # Record has since been deleted. Deleted records should stay deleted. > > $num_items_deleted += BatchRevertItems($rowref->{'import_record_id'}, $rowref->{'matched_biblionumber'}); >-- >1.7.2.5
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 14597
:
41131
|
41132
|
41133
|
41134
|
41170
|
42699
|
42900
|
42901
|
42902