Bugzilla – Attachment 153546 Details for
Bug 33270
OAI-PMH should not die on record errors
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33270: (QA follow-up) Do not change param hashref
Bug-33270-QA-follow-up-Do-not-change-param-hashref.patch (text/plain), 1.10 KB, created by
Marcel de Rooy
on 2023-07-17 13:11:58 UTC
(
hide
)
Description:
Bug 33270: (QA follow-up) Do not change param hashref
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2023-07-17 13:11:58 UTC
Size:
1.10 KB
patch
obsolete
>From 6cab48e9e13ee34b4df4bf7bc04dbb4c44ab08f9 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Mon, 17 Jul 2023 10:59:26 +0000 >Subject: [PATCH] Bug 33270: (QA follow-up) Do not change param hashref >Content-Type: text/plain; charset=utf-8 > >Might just be a theoretical thing now, but safer to clone. > >Test plan: >Run t/db_dependent/Koha/Biblio/Metadata.t > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > Koha/Biblio/Metadata.pm | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/Koha/Biblio/Metadata.pm b/Koha/Biblio/Metadata.pm >index 448a08b70f..d5bfea5cd0 100644 >--- a/Koha/Biblio/Metadata.pm >+++ b/Koha/Biblio/Metadata.pm >@@ -149,6 +149,7 @@ Will return undef if the record cannot be built > sub record_strip_nonxml { > > my ( $self, $params ) = @_; >+ $params //= {}; > > my $record; > my $marcxml_error; >@@ -166,8 +167,7 @@ sub record_strip_nonxml { > return; > } > >- $params->{record} = $record; >- return $self->record($params); >+ return $self->record( { %$params, record => $record } ); > } > > =head2 Internal methods >-- >2.30.2
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 33270
:
152550
|
152573
|
152649
|
152650
|
152836
|
152837
|
153325
|
153542
|
153543
|
153544
|
153545
| 153546