From 507f72d1dd92dee8a8f88693f79a624e08502b81 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Tue, 28 Jun 2022 12:29:05 +0100 Subject: [PATCH] Bug 30677: Cleanup Content-Type: text/plain; charset=utf-8 This patch cleans up the regular expression to remove the superflous double check and use standard delimiters Signed-off-by: Marcel de Rooy --- Koha/REST/V1/Acquisitions/Orders.pm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Koha/REST/V1/Acquisitions/Orders.pm b/Koha/REST/V1/Acquisitions/Orders.pm index 1ed0243e3d..ae9c1bafbc 100644 --- a/Koha/REST/V1/Acquisitions/Orders.pm +++ b/Koha/REST/V1/Acquisitions/Orders.pm @@ -343,10 +343,7 @@ UI. sub table_name_fixer { my ( $self, $q ) = @_; - - $q =~ s{biblio\.(?=isbn|ean|publisher)}{biblio\.biblioitem\.}g - if $q =~ m/.*(isbn|ean|publisher).*/; - + $q =~ s/biblio\.(?=isbn|ean|publisher)/biblio.biblioitem./g; return $q; } -- 2.20.1