Bugzilla – Attachment 1783 Details for
Bug 4021
recent acquisitions: Breaks on undefined biblio
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch proposed
0001-bug-4021-recent-acquisitions-Error500-on-undefined-b.patch (text/plain), 851 bytes, created by
Chris Cormack
on 2009-12-31 13:47:00 UTC
(
hide
)
Description:
patch proposed
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2009-12-31 13:47:00 UTC
Size:
851 bytes
patch
obsolete
>From 2f6243133f23fbf6ca3a27c43a69fec42467c906 Mon Sep 17 00:00:00 2001 >From: Henri-Damien LAURENT <henridamien.laurent@biblibre.com> >Date: Thu, 31 Dec 2009 14:41:14 +0100 >Subject: [PATCH] (bug #4021) recent acquisitions Error500 on undefined biblio > >This patch adds some more checks before creating the summary >--- > C4/Biblio.pm | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > >diff --git a/C4/Biblio.pm b/C4/Biblio.pm >index e5f55f2..385f141 100755 >--- a/C4/Biblio.pm >+++ b/C4/Biblio.pm >@@ -1251,8 +1251,10 @@ Return the summary of a record. > sub GetBiblioSummary { > my $recorddata =shift @_; > >+ return unless $recorddata; > my $marcflavour = C4::Context->preference("marcflavour"); > my $marc=MARC::Record::new_from_xml($recorddata,"utf-8",$marcflavour); >+ return unless $marc; > > my $str; > >-- >1.6.3.3 >
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 4021
: 1783