Bugzilla – Attachment 4874 Details for
Bug 6673
Create Batch Label from Staged MARC Records fails after upgrade to 3.4.x
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 6673: Create Batch Label from Staged MARC Records fails
Bug-6673-Create-Batch-Label-from-Staged-MARC-Recor.patch (text/plain), 1.46 KB, created by
Chris Cormack
on 2011-08-06 00:56:04 UTC
(
hide
)
Description:
Bug 6673: Create Batch Label from Staged MARC Records fails
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2011-08-06 00:56:04 UTC
Size:
1.46 KB
patch
obsolete
>From 31e0115caf24e0e14389ca614c030cc9c42bc5de Mon Sep 17 00:00:00 2001 >From: Ian Walls <ian.walls@bywatersolutions.com> >Date: Fri, 5 Aug 2011 12:48:01 -0400 >Subject: [PATCH] Bug 6673: Create Batch Label from Staged MARC Records fails > >For some reason, the code attempts to get the current users branch in the following manner: > >$branch_code = get_branch_code_from_name($template->param('LoginBranchname')) > >This seems particularly cumbersome and prone to failure if there is not template param LoginBranchname. >This patch changes the given line to use the more traditional method for finding current branchcode: > >$branch_code = C4::Context->userenv->{'branch'}; > >Initial testing shows this to help alleviate the problem > >Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz> >--- > tools/manage-marc-import.pl | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > >diff --git a/tools/manage-marc-import.pl b/tools/manage-marc-import.pl >index 3c43dab..34d2639 100755 >--- a/tools/manage-marc-import.pl >+++ b/tools/manage-marc-import.pl >@@ -189,7 +189,7 @@ sub redo_matching { > sub create_labelbatch_from_importbatch { > my ($batch_id) = @_; > my $err = undef; >- my $branch_code = get_branch_code_from_name($template->param('LoginBranchname')); >+ my $branch_code = C4::Context->userenv->{'branch'}; > my $batch = C4::Labels::Batch->new(branch_code => $branch_code); > my @items = GetItemNumbersFromImportBatch($batch_id); > if (grep{$_ == 0} @items) { >-- >1.7.4.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 6673
:
4869
|
4874
|
5495
|
5620