Bugzilla – Attachment 116695 Details for
Bug 27673
Replace YAML with YAML::XS
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27673: Rename C4::Circulation decode to _decode
Bug-27673-Rename-C4Circulation-decode-to-decode.patch (text/plain), 1.38 KB, created by
Jonathan Druart
on 2021-02-11 09:57:53 UTC
(
hide
)
Description:
Bug 27673: Rename C4::Circulation decode to _decode
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-02-11 09:57:53 UTC
Size:
1.38 KB
patch
obsolete
>From 3330e937e17b0b75aee21fe163e63fd0aad6c2df Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 11 Feb 2021 10:44:04 +0100 >Subject: [PATCH] Bug 27673: Rename C4::Circulation decode to _decode > >To prevent conflict with Encode::encode >--- > C4/Circulation.pm | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > >diff --git a/C4/Circulation.pm b/C4/Circulation.pm >index e2298ad684..d59d37cbf6 100644 >--- a/C4/Circulation.pm >+++ b/C4/Circulation.pm >@@ -182,7 +182,7 @@ sub barcodedecode { > } elsif ($filter eq 'cuecat') { > chomp($barcode); > my @fields = split( /\./, $barcode ); >- my @results = map( decode($_), @fields[ 1 .. $#fields ] ); >+ my @results = map( C4::Circulation::_decode($_), @fields[ 1 .. $#fields ] ); > ($#results == 2) and return $results[2]; > } elsif ($filter eq 'T-prefix') { > if ($barcode =~ /^[Tt](\d)/) { >@@ -213,9 +213,9 @@ sub barcodedecode { > return $barcode; # return barcode, modified or not > } > >-=head2 decode >+=head2 _decode > >- $str = &decode($chunk); >+ $str = &_decode($chunk); > > Decodes a segment of a string emitted by a CueCat barcode scanner and > returns it. >@@ -225,7 +225,7 @@ or Javascript based decoding on the client side. > > =cut > >-sub decode { >+sub _decode { > my ($encoded) = @_; > my $seq = > 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+-'; >-- >2.20.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 27673
:
116670
|
116675
|
116694
|
116695
|
116696
|
116737
|
116738
|
116739
|
116740
|
116762
|
116763
|
116764
|
116765
|
116766
|
116778
|
116835
|
116929
|
116990