Bugzilla – Attachment 128773 Details for
Bug 20817
Add ability to retain 9xx fields when adding on order item to existing record
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20817: Update module to use YAML::XS
Bug-20817-Update-module-to-use-YAMLXS.patch (text/plain), 1.32 KB, created by
Kyle M Hall
on 2021-12-20 16:58:41 UTC
(
hide
)
Description:
Bug 20817: Update module to use YAML::XS
Filename:
MIME Type:
Creator:
Kyle M Hall
Created:
2021-12-20 16:58:41 UTC
Size:
1.32 KB
patch
obsolete
>From da53106f5239324e254b7a3f128d3ccc0021effb Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Wed, 17 Mar 2021 09:44:11 -0400 >Subject: [PATCH] Bug 20817: Update module to use YAML::XS > >--- > Koha/Acquisition/Utils.pm | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > >diff --git a/Koha/Acquisition/Utils.pm b/Koha/Acquisition/Utils.pm >index 5b754d1dd0e..b78be6401fe 100644 >--- a/Koha/Acquisition/Utils.pm >+++ b/Koha/Acquisition/Utils.pm >@@ -17,6 +17,8 @@ package Koha::Acquisition::Utils; > > use Modern::Perl; > >+use YAML::XS; >+ > use C4::Context; > > =head1 NAME >@@ -43,7 +45,7 @@ sub GetMarcFieldsToOrderValues { > my $syspref = C4::Context->preference('MarcFieldsToOrder'); > $syspref = "$syspref\n\n"; # YAML is anal on ending \n. Surplus does not hurt > my $yaml = eval { >- YAML::Load($syspref); >+ YAML::XS::Load($syspref); > }; > if ( $@ ) { > warn "Unable to parse $syspref syspref : $@"; >@@ -87,7 +89,7 @@ sub GetMarcItemFieldsToOrderValues { > my $syspref = C4::Context->preference('MarcItemFieldsToOrder'); > $syspref = "$syspref\n\n"; # YAML is anal on ending \n. Surplus does not hurt > my $yaml = eval { >- YAML::Load($syspref); >+ YAML::XS::Load($syspref); > }; > if ( $@ ) { > warn "Unable to parse $syspref syspref : $@"; >-- >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 20817
:
79867
|
80537
|
86711
|
86746
|
105214
|
105215
|
105216
|
105217
|
105218
|
105219
|
115343
|
118371
|
118372
|
118373
|
118374
|
118375
|
118376
|
118377
|
118378
|
122692
|
122834
|
122841
|
122858
|
122861
|
128766
|
128767
|
128768
|
128769
|
128770
|
128771
|
128772
|
128773
|
128774
|
128775
|
128776
|
128777
|
128782
|
128783
|
128785
|
128786
|
128787
|
128788
|
128789
|
128790
|
128791
|
128792
|
128793
|
128794
|
128795
|
128796
|
128797
|
128798
|
131732
|
131733
|
131734
|
131735
|
131736
|
131737
|
131738
|
131739
|
131740
|
131741
|
131742
|
131743
|
131744
|
131745
|
131746
|
131747
|
131748
|
131749
|
142630
|
142631
|
142632
|
142633
|
142634
|
142635
|
142636
|
142637
|
142638
|
142639
|
142640
|
142641
|
142642
|
142643
|
142644
|
142645
|
142646
|
142647
|
142648
|
142649
|
142650
|
142651
|
142829