Bugzilla – Attachment 151016 Details for
Bug 32911
Remove ILL partner_code config from koha-conf.xml and turn it into a system preference
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32911: (follow-up) Only move config value from koha-conf.xml if it exists
Bug-32911-follow-up-Only-move-config-value-from-ko.patch (text/plain), 1.77 KB, created by
Martin Renvoize (ashimema)
on 2023-05-10 15:50:51 UTC
(
hide
)
Description:
Bug 32911: (follow-up) Only move config value from koha-conf.xml if it exists
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2023-05-10 15:50:51 UTC
Size:
1.77 KB
patch
obsolete
>From b2542f8b43f57110d3413bb2de3a797b691a80d2 Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Date: Fri, 5 May 2023 15:08:24 +0000 >Subject: [PATCH] Bug 32911: (follow-up) Only move config value from > koha-conf.xml if it exists > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > installer/data/mysql/atomicupdate/bug_32911.pl | 15 +++++++++------ > 1 file changed, 9 insertions(+), 6 deletions(-) > >diff --git a/installer/data/mysql/atomicupdate/bug_32911.pl b/installer/data/mysql/atomicupdate/bug_32911.pl >index 44176d1a05..d9d941a57b 100755 >--- a/installer/data/mysql/atomicupdate/bug_32911.pl >+++ b/installer/data/mysql/atomicupdate/bug_32911.pl >@@ -10,11 +10,14 @@ return { > my $xml_config = C4::Context->config("interlibrary_loans"); > my $existing_partner_code = $xml_config->{partner_code}; > >- $dbh->do(qq{ >- INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) >- VALUES ('ILLPartnerCode', '$existing_partner_code', NULL, 'Patrons from this patron category will be used as partners to place ILL requests with', 'free'); >- }); >- >- say $out "Moved value of partner_code in koha-conf.xml into new system preference 'ILLPartnerCode'"; >+ if ( $existing_partner_code ) { >+ $dbh->do( >+ qq{ >+ INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) >+ VALUES ('ILLPartnerCode', '$existing_partner_code', NULL, 'Patrons from this patron category will be used as partners to place ILL requests with', 'free'); >+ } >+ ); >+ say $out "Moved value of partner_code in koha-conf.xml into new system preference 'ILLPartnerCode'"; >+ } > } > }; >-- >2.40.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 32911
:
146403
|
146404
|
146405
|
147417
|
147418
|
147419
|
150672
|
150673
|
150674
|
150750
|
150751
|
150752
|
150753
|
150768
|
150769
|
151011
|
151012
|
151013
|
151014
|
151015
| 151016 |
155195