From 53b3aac04433c3bcf6d20da148425cc596935f9f Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 8 Jan 2021 13:55:27 +0100 Subject: [PATCH] Bug 20212: Remove clone We don't need it here. --- Koha/REST/V1/Acquisitions/Orders.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Koha/REST/V1/Acquisitions/Orders.pm b/Koha/REST/V1/Acquisitions/Orders.pm index 4cb0fe982f..1637bea729 100644 --- a/Koha/REST/V1/Acquisitions/Orders.pm +++ b/Koha/REST/V1/Acquisitions/Orders.pm @@ -22,7 +22,6 @@ use Mojo::Base 'Mojolicious::Controller'; use Koha::Acquisition::Orders; use Koha::DateUtils; -use Clone 'clone'; use JSON qw(decode_json); use Scalar::Util qw( blessed ); use Try::Tiny; @@ -69,7 +68,7 @@ sub list { my ( $filtered_params, $reserved_params, $path_params ) = $c->extract_reserved_params($args); # Look for embeds my $embed = $c->stash('koha.embed'); - my $fixed_embed = clone($embed); + my $fixed_embed = {%$embed}; if ( exists $fixed_embed->{biblio} ) { # Add biblioitems to prefetch # FIXME remove if we merge biblio + biblioitems -- 2.20.1