Bugzilla – Attachment 97314 Details for
Bug 24366
Merging biblioitems should happen in Koha::Biblio->to_api
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24366: Improve hashref construction
Bug-24366-Improve-hashref-construction.patch (text/plain), 863 bytes, created by
Jonathan Druart
on 2020-01-13 14:16:51 UTC
(
hide
)
Description:
Bug 24366: Improve hashref construction
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-01-13 14:16:51 UTC
Size:
863 bytes
patch
obsolete
>From 53bc8d9ee3d9b1f405b17dc4b7200a601d52083d Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 13 Jan 2020 15:16:20 +0100 >Subject: [PATCH] Bug 24366: Improve hashref construction > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > Koha/Biblio.pm | 6 +----- > 1 file changed, 1 insertion(+), 5 deletions(-) > >diff --git a/Koha/Biblio.pm b/Koha/Biblio.pm >index 5efc462e03..e503bad718 100644 >--- a/Koha/Biblio.pm >+++ b/Koha/Biblio.pm >@@ -740,11 +740,7 @@ sub to_api { > my $response = $self->SUPER::to_api( $args ); > my $biblioitem = $self->biblioitem->to_api( $args ); > >- foreach my $key ( keys %{ $biblioitem } ) { >- $response->{$key} = $biblioitem->{$key}; >- } >- >- return $response; >+ return { %$response, %$biblioitem }; > } > > =head3 to_api_mapping >-- >2.11.0
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 24366
:
96914
|
96915
|
96958
|
96959
|
97312
|
97313
| 97314 |
97332