Bugzilla – Attachment 13335 Details for
Bug 7921
Software error while placing order
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7921: Software error while placing order
Bug-7921-Software-error-while-placing-order.patch (text/plain), 1.82 KB, created by
Chris Cormack
on 2012-11-09 02:01:45 UTC
(
hide
)
Description:
Bug 7921: Software error while placing order
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2012-11-09 02:01:45 UTC
Size:
1.82 KB
patch
obsolete
>From 0fb671d81161efcb65ecc3fd98e483d70491add8 Mon Sep 17 00:00:00 2001 >From: Fridolyn SOMERS <fridolyn.somers@biblibre.com> >Date: Wed, 31 Oct 2012 14:26:31 +0100 >Subject: [PATCH] Bug 7921: Software error while placing order > >Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz> >--- > C4/Biblio.pm | 7 ++++--- > acqui/neworderempty.pl | 2 +- > 2 files changed, 5 insertions(+), 4 deletions(-) > >diff --git a/C4/Biblio.pm b/C4/Biblio.pm >index afb60d3..eb213d5 100644 >--- a/C4/Biblio.pm >+++ b/C4/Biblio.pm >@@ -1199,13 +1199,14 @@ sub GetUsedMarcStructure { > ($MARCfield,$MARCsubfield)=GetMarcFromKohaField($kohafield,$frameworkcode); > > Returns the MARC fields & subfields mapped to the koha field >-for the given frameworkcode >+for the given frameworkcode or default framework if $frameworkcode is missing > > =cut > > sub GetMarcFromKohaField { >- my ( $kohafield, $frameworkcode ) = @_; >- return (0, undef) unless $kohafield and defined $frameworkcode; >+ my $kohafield = shift; >+ my $frameworkcode = shift || ''; >+ return (0, undef) unless $kohafield; > my $relations = C4::Context->marcfromkohafield; > if ( my $mf = $relations->{$frameworkcode}->{$kohafield} ) { > return @$mf; >diff --git a/acqui/neworderempty.pl b/acqui/neworderempty.pl >index 4144033..965eeef 100755 >--- a/acqui/neworderempty.pl >+++ b/acqui/neworderempty.pl >@@ -451,7 +451,7 @@ sub MARCfindbreeding { > if ( C4::Context->preference("z3950NormalizeAuthor") > and C4::Context->preference("z3950AuthorAuthFields") ) > { >- my ( $tag, $subfield ) = GetMarcFromKohaField("biblio.author"); >+ my ( $tag, $subfield ) = GetMarcFromKohaField("biblio.author", ''); > > # my $summary = C4::Context->preference("z3950authortemplate"); > my $auth_fields = >-- >1.7.10.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 7921
:
13137
| 13335