Bugzilla – Attachment 151264 Details for
Bug 32711
Add biblio details to trusted self-checkout modal
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32711: Fix biblio embeds
Bug-32711-Fix-biblio-embeds.patch (text/plain), 897 bytes, created by
Martin Renvoize (ashimema)
on 2023-05-16 09:58:25 UTC
(
hide
)
Description:
Bug 32711: Fix biblio embeds
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2023-05-16 09:58:25 UTC
Size:
897 bytes
patch
obsolete
>From 40b6f6f1a13f1bad4d7104ac29d5a7e66b701745 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Tue, 7 Mar 2023 12:21:12 +0000 >Subject: [PATCH] Bug 32711: Fix biblio embeds > >We need to drop the embed part of the args we pass to biblioitem else we end >up with some very strange behaviours on the acquisitions endpoint. > >Signed-off-by: Silvia Meakins <smeakins@eso.org> >--- > Koha/Biblio.pm | 4 ++++ > 1 file changed, 4 insertions(+) > >diff --git a/Koha/Biblio.pm b/Koha/Biblio.pm >index 587eb5af00..986fa182c9 100644 >--- a/Koha/Biblio.pm >+++ b/Koha/Biblio.pm >@@ -1248,6 +1248,10 @@ sub to_api { > my ($self, $args) = @_; > > my $response = $self->SUPER::to_api( $args ); >+ >+ $args = defined $args ? {%$args} : {}; >+ delete $args->{embed}; >+ > my $biblioitem = $self->biblioitem->to_api( $args ); > > return { %$response, %$biblioitem }; >-- >2.40.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 32711
:
145618
|
145619
|
145787
|
145788
|
150984
|
150985
|
150986
|
151262
|
151263
|
151264
|
152800
|
152801
|
152802
|
153468
|
153469
|
153470