Bugzilla – Attachment 21944 Details for
Bug 11034
BiblioAutoLink has incorrect return in addbiblio.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed Patch
0001-Bug-11034-Remove-incorrect-return-for-BiblioAutoLink.patch (text/plain), 1.19 KB, created by
Colin Campbell
on 2013-10-10 13:17:15 UTC
(
hide
)
Description:
Proposed Patch
Filename:
MIME Type:
Creator:
Colin Campbell
Created:
2013-10-10 13:17:15 UTC
Size:
1.19 KB
patch
obsolete
>From 9e79eda445f32eb1776ffcec385d4b5fcb0114c6 Mon Sep 17 00:00:00 2001 >From: Colin Campbell <colin.campbell@ptfs-europe.com> >Date: Thu, 10 Oct 2013 14:09:19 +0100 >Subject: [PATCH] Bug 11034 Remove incorrect return for BiblioAutoLink > >BiblioAutoLink was being called expecting an array to >be returned. The subroutine in fact returns a scalar > >As the variables that the return was stored in, went >out of scope immediately. It is probably better to be >explicit that we are throwing the return away by not >going through the motions of storing it in a variable >--- > cataloguing/addbiblio.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/cataloguing/addbiblio.pl b/cataloguing/addbiblio.pl >index cb40396..bfb62f0 100755 >--- a/cataloguing/addbiblio.pl >+++ b/cataloguing/addbiblio.pl >@@ -865,7 +865,7 @@ if ( $op eq "addbiblio" ) { > my $oldbibnum; > my $oldbibitemnum; > if (C4::Context->preference("BiblioAddsAuthorities")){ >- my ($countlinked,$countcreated)=BiblioAutoLink($record,$frameworkcode); >+ BiblioAutoLink( $record, $frameworkcode ); > } > if ( $is_a_modif ) { > ModBiblioframework( $biblionumber, $frameworkcode ); >-- >1.8.3.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 11034
:
21944
|
22086
|
22087
|
22313