View | Details | Raw Unified | Return to bug 33192
Collapse All | Expand All

(-)a/installer/data/mysql/atomicupdate/bug_33192.pl (+14 lines)
Line 0 Link Here
1
use Modern::Perl;
2
3
return {
4
    bug_number => "33192",
5
    description => "Rename `AutoEmailPrimaryAddress` to `EmailFieldPrimary`",
6
    up => sub {
7
        my ($args) = @_;
8
        my ($dbh, $out) = @$args{qw(dbh out)};
9
        $dbh->do(q{
10
            UPDATE systempreferences SET variable = 'EmailFieldPrimary', explanation = 'Defines the default email address field where patron email notices are sent.' WHERE variable = 'AutoEmailPrimaryAddress'
11
        });
12
        say $out "Updated system preference 'AutoEmailPrimaryAddress'";
13
    },
14
};
(-)a/installer/data/mysql/mandatory/sysprefs.sql (-2 / +1 lines)
Lines 79-85 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
79
('AutoCreateAuthorities','0',NULL,'Automatically create authorities that do not exist when cataloging records.','YesNo'),
79
('AutoCreateAuthorities','0',NULL,'Automatically create authorities that do not exist when cataloging records.','YesNo'),
80
('AutoCreditNumber', '', '', 'Automatically generate a number for account credits', 'Choice'),
80
('AutoCreditNumber', '', '', 'Automatically generate a number for account credits', 'Choice'),
81
('AutoEmailNewUser','0',NULL,'Send an email to newly created patrons.','YesNo'),
81
('AutoEmailNewUser','0',NULL,'Send an email to newly created patrons.','YesNo'),
82
('AutoEmailPrimaryAddress','OFF','email|emailpro|B_email|cardnumber|OFF','Defines the default email address where \'Account Details\' emails are sent.','Choice'),
83
('AutoShareWithMana','subscription','','defines datas automatically shared with mana','multiple'),
82
('AutoShareWithMana','subscription','','defines datas automatically shared with mana','multiple'),
84
('AutoLocation','0',NULL,'If ON, IP authentication is enabled, blocking access to the staff interface from unauthorized IP addresses','YesNo'),
83
('AutoLocation','0',NULL,'If ON, IP authentication is enabled, blocking access to the staff interface from unauthorized IP addresses','YesNo'),
85
('AutomaticItemReturn','1',NULL,'If ON, Koha will automatically set up a transfer of this item to its homebranch','YesNo'),
84
('AutomaticItemReturn','1',NULL,'If ON, Koha will automatically set up a transfer of this item to its homebranch','YesNo'),
Lines 208-213 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
208
('ElasticsearchIndexStatus_biblios', '0', 'Biblios index status', NULL, NULL),
207
('ElasticsearchIndexStatus_biblios', '0', 'Biblios index status', NULL, NULL),
209
('ElasticsearchMARCFormat', 'ISO2709', 'ISO2709|ARRAY', 'Elasticsearch MARC format. ISO2709 format is recommended as it is faster and takes less space, whereas array is searchable.', 'Choice'),
208
('ElasticsearchMARCFormat', 'ISO2709', 'ISO2709|ARRAY', 'Elasticsearch MARC format. ISO2709 format is recommended as it is faster and takes less space, whereas array is searchable.', 'Choice'),
210
('ElasticsearchCrossFields', '1', '', 'Enable "cross_fields" option for searches using Elastic search.', 'YesNo'),
209
('ElasticsearchCrossFields', '1', '', 'Enable "cross_fields" option for searches using Elastic search.', 'YesNo'),
210
('EmailFieldPrimary','OFF','email|emailpro|B_email|cardnumber|OFF','Defines the default email address field where patron email notices are sent.','Choice'),
211
('EmailAddressForPatronRegistrations', '', '', ' If you choose EmailAddressForPatronRegistrations you have to enter a valid email address: ', 'free'),
211
('EmailAddressForPatronRegistrations', '', '', ' If you choose EmailAddressForPatronRegistrations you have to enter a valid email address: ', 'free'),
212
('EmailAddressForSuggestions','','',' If you choose EmailAddressForSuggestions you have to enter a valid email address: ','free'),
212
('EmailAddressForSuggestions','','',' If you choose EmailAddressForSuggestions you have to enter a valid email address: ','free'),
213
('emailLibrarianWhenHoldIsPlaced','0',NULL,'If ON, emails the librarian whenever a hold is placed','YesNo'),
213
('emailLibrarianWhenHoldIsPlaced','0',NULL,'If ON, emails the librarian whenever a hold is placed','YesNo'),
214
- 

Return to bug 33192