Bugzilla – Attachment 13369 Details for
Bug 9046
Items are not exported with the tools/export.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9046: FIX wrong test on an arrayref instead of an array
Bug-9046-FIX-wrong-test-on-an-arrayref-instead-of-.patch (text/plain), 1.15 KB, created by
Chris Cormack
on 2012-11-10 04:14:08 UTC
(
hide
)
Description:
Bug 9046: FIX wrong test on an arrayref instead of an array
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2012-11-10 04:14:08 UTC
Size:
1.15 KB
patch
obsolete
>From d9b1244298276268630b9f85fe4ba076a2622711 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Fri, 9 Nov 2012 18:34:40 +0100 >Subject: [PATCH] Bug 9046: FIX wrong test on an arrayref instead of an array > >EmbedItemsInMarcBiblio does not embed items when the itemnumbers param >is given. That breaks the export tools (used from commandline). > >Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz> >--- > C4/Biblio.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/Biblio.pm b/C4/Biblio.pm >index eb213d5..478bd55 100644 >--- a/C4/Biblio.pm >+++ b/C4/Biblio.pm >@@ -2851,7 +2851,7 @@ sub EmbedItemsInMarcBiblio { > my @item_fields; > my ( $itemtag, $itemsubfield ) = GetMarcFromKohaField( "items.itemnumber", $frameworkcode ); > while (my ($itemnumber) = $sth->fetchrow_array) { >- next if $itemnumbers and not grep { $_ == $itemnumber } @$itemnumbers; >+ next if @$itemnumbers and not grep { $_ == $itemnumber } @$itemnumbers; > require C4::Items; > my $item_marc = C4::Items::GetMarcItem($biblionumber, $itemnumber); > push @item_fields, $item_marc->field($itemtag); >-- >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 9046
:
13366
|
13369
|
13389
|
13413
|
21378
|
21379
|
21568
|
21569