Bugzilla – Attachment 63667 Details for
Bug 18611
Create labels action fails in manage-marc-import.pl if an item has been deleted from the import batch
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18611 - Create labels action fails in manage-marc-import.pl if an item has been deleted from the import batch.
SIGNED-OFF-Bug-18611---Create-labels-action-fails-.patch (text/plain), 1.73 KB, created by
Josef Moravec
on 2017-05-23 18:25:42 UTC
(
hide
)
Description:
Bug 18611 - Create labels action fails in manage-marc-import.pl if an item has been deleted from the import batch.
Filename:
MIME Type:
Creator:
Josef Moravec
Created:
2017-05-23 18:25:42 UTC
Size:
1.73 KB
patch
obsolete
>From 4e698453d1f5a8ea84649b257eeb4cd63837d6ef Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Tue, 16 May 2017 05:40:28 -0400 >Subject: [PATCH] [SIGNED-OFF] Bug 18611 - Create labels action fails in > manage-marc-import.pl if an item has been deleted from the import batch. > >To test: >1 - Import a batch with some items >2 - Delete one of the imported items >3 - Browse to Tools->Staged MARC record management >4 - Click (Create label batch) for the batch you imported >5 - Recieve an error >6 - Apply patch >7 - Click (Create label batch) >8 - Batch is created with remaning items from the import > >Signed-off-by: Josef Moravec <josef.moravec@gmail.com> > >Signed-off-by: Josef Moravec <josef.moravec@gmail.com> >--- > C4/ImportBatch.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/ImportBatch.pm b/C4/ImportBatch.pm >index a4f4c55..99d4bd7 100644 >--- a/C4/ImportBatch.pm >+++ b/C4/ImportBatch.pm >@@ -1059,7 +1059,7 @@ sub GetImportBatchRangeDesc { > sub GetItemNumbersFromImportBatch { > my ($batch_id) = @_; > my $dbh = C4::Context->dbh; >- my $sth = $dbh->prepare("SELECT itemnumber FROM import_batches,import_records,import_items WHERE import_batches.import_batch_id=import_records.import_batch_id AND import_records.import_record_id=import_items.import_record_id AND import_batches.import_batch_id=?"); >+ my $sth = $dbh->prepare("SELECT items.itemnumber FROM import_batches,import_records,import_items, items WHERE import_batches.import_batch_id=import_records.import_batch_id AND import_records.import_record_id=import_items.import_record_id AND items.itemnumber=import_items.itemnumber AND import_batches.import_batch_id=?"); > $sth->execute($batch_id); > my @items ; > while ( my ($itm) = $sth->fetchrow_array ) { >-- >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 18611
:
63483
|
63667
|
63668
|
63669
|
63728
|
63729
|
63730
|
63731