Bugzilla – Attachment 111366 Details for
Bug 25913
Internal server error when calling get_coins on record with no title (245) but with 880 linked to 245
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25913: Get the correct return of AddBiblio
Bug-25913-Get-the-correct-return-of-AddBiblio.patch (text/plain), 1.07 KB, created by
Jonathan Druart
on 2020-10-08 08:59:54 UTC
(
hide
)
Description:
Bug 25913: Get the correct return of AddBiblio
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-10-08 08:59:54 UTC
Size:
1.07 KB
patch
obsolete
>From 03d76a6371000ecbcc64ac10a12b3a77e99c7b08 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 8 Oct 2020 10:58:48 +0200 >Subject: [PATCH] Bug 25913: Get the correct return of AddBiblio > >We need the parenthesis to get the biblionumber and not the >biblioitemnumber, in case there is a discrepancy. >--- > t/db_dependent/Koha/Biblio.t | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/t/db_dependent/Koha/Biblio.t b/t/db_dependent/Koha/Biblio.t >index 727c5b57de..cf359edf32 100755 >--- a/t/db_dependent/Koha/Biblio.t >+++ b/t/db_dependent/Koha/Biblio.t >@@ -135,7 +135,7 @@ subtest 'get_coins and get_openurl' => sub { > > my $record = MARC::Record->new(); > $record->append_fields( MARC::Field->new('100','','','a' => 'Author 2'), MARC::Field->new('880','','','a' => 'Something') ); >- my $biblionumber = C4::Biblio::AddBiblio($record, ''); >+ my ( $biblionumber ) = C4::Biblio::AddBiblio($record, ''); > my $biblio_no_title = Koha::Biblios->find($biblionumber); > is( > $biblio_no_title->get_coins, >-- >2.20.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 25913
:
106476
|
107563
|
110941
|
111153
| 111366