Bugzilla – Attachment 148118 Details for
Bug 33192
We should rename 'AutoEmailPrimaryAddress' to 'EmailFieldPrimary' for clarification
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33192: Update AutoEmailPrimaryAddress to EmailFieldPrimary
Bug-33192-Update-AutoEmailPrimaryAddress-to-EmailF.patch (text/plain), 3.54 KB, created by
Martin Renvoize (ashimema)
on 2023-03-13 14:06:38 UTC
(
hide
)
Description:
Bug 33192: Update AutoEmailPrimaryAddress to EmailFieldPrimary
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2023-03-13 14:06:38 UTC
Size:
3.54 KB
patch
obsolete
>From 1401b627920faa1fa3022882ba22c208526aa6a6 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Mon, 13 Mar 2023 14:04:45 +0000 >Subject: [PATCH] Bug 33192: Update AutoEmailPrimaryAddress to > EmailFieldPrimary > >This patch updates the database to reflect the new name for the >AutoEmailPrimaryAddress system preferences >--- > installer/data/mysql/atomicupdate/bug_33192.pl | 14 ++++++++++++++ > installer/data/mysql/mandatory/sysprefs.sql | 2 +- > 2 files changed, 15 insertions(+), 1 deletion(-) > create mode 100644 installer/data/mysql/atomicupdate/bug_33192.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_33192.pl b/installer/data/mysql/atomicupdate/bug_33192.pl >new file mode 100644 >index 0000000000..4efbf44813 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_33192.pl >@@ -0,0 +1,14 @@ >+use Modern::Perl; >+ >+return { >+ bug_number => "33192", >+ description => "Rename `AutoEmailPrimaryAddress` to `EmailFieldPrimary`", >+ up => sub { >+ my ($args) = @_; >+ my ($dbh, $out) = @$args{qw(dbh out)}; >+ $dbh->do(q{ >+ UPDATE systempreferences SET variable = 'EmailFieldPrimary', explanation = 'Defines the default email address field where patron email notices are sent.' WHERE variable = 'AutoEmailPrimaryAddress' >+ }); >+ say $out "Updated system preference 'AutoEmailPrimaryAddress'"; >+ }, >+}; >diff --git a/installer/data/mysql/mandatory/sysprefs.sql b/installer/data/mysql/mandatory/sysprefs.sql >index b12f1ce170..de6b472943 100644 >--- a/installer/data/mysql/mandatory/sysprefs.sql >+++ b/installer/data/mysql/mandatory/sysprefs.sql >@@ -79,7 +79,6 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` > ('AutoCreateAuthorities','0',NULL,'Automatically create authorities that do not exist when cataloging records.','YesNo'), > ('AutoCreditNumber', '', '', 'Automatically generate a number for account credits', 'Choice'), > ('AutoEmailNewUser','0',NULL,'Send an email to newly created patrons.','YesNo'), >-('AutoEmailPrimaryAddress','OFF','email|emailpro|B_email|cardnumber|OFF','Defines the default email address where \'Account Details\' emails are sent.','Choice'), > ('AutoShareWithMana','subscription','','defines datas automatically shared with mana','multiple'), > ('AutoLocation','0',NULL,'If ON, IP authentication is enabled, blocking access to the staff interface from unauthorized IP addresses','YesNo'), > ('AutomaticItemReturn','1',NULL,'If ON, Koha will automatically set up a transfer of this item to its homebranch','YesNo'), >@@ -208,6 +207,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` > ('ElasticsearchIndexStatus_biblios', '0', 'Biblios index status', NULL, NULL), > ('ElasticsearchMARCFormat', 'ISO2709', 'ISO2709|ARRAY', 'Elasticsearch MARC format. ISO2709 format is recommended as it is faster and takes less space, whereas array is searchable.', 'Choice'), > ('ElasticsearchCrossFields', '1', '', 'Enable "cross_fields" option for searches using Elastic search.', 'YesNo'), >+('EmailFieldPrimary','OFF','email|emailpro|B_email|cardnumber|OFF','Defines the default email address field where patron email notices are sent.','Choice'), > ('EmailAddressForPatronRegistrations', '', '', ' If you choose EmailAddressForPatronRegistrations you have to enter a valid email address: ', 'free'), > ('EmailAddressForSuggestions','','',' If you choose EmailAddressForSuggestions you have to enter a valid email address: ','free'), > ('emailLibrarianWhenHoldIsPlaced','0',NULL,'If ON, emails the librarian whenever a hold is placed','YesNo'), >-- >2.39.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 33192
:
148118
|
148119
|
148139
|
148140
|
149381
|
149382
|
149383
|
149384