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

(-)a/installer/data/mysql/atomicupdate/bug_6810-add_MembershipExpiryDaysNotice_syspref.sql (-1 / +1 lines)
Line 1 Link Here
1
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('MembershipExpiryDaysNotice',14,'Send an account expiration notice that a patron''s card is about to expire after',NULL,'Integer')
1
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('MembershipExpiryDaysNotice',NULL,'Send an account expiration notice that a patron''s card is about to expire after',NULL,'Integer')
(-)a/installer/data/mysql/sysprefs.sql (-1 / +1 lines)
Lines 211-217 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
211
('maxoutstanding','5','','maximum amount withstanding to be able make holds','Integer'),
211
('maxoutstanding','5','','maximum amount withstanding to be able make holds','Integer'),
212
('maxRecordsForFacets','20',NULL,NULL,'Integer'),
212
('maxRecordsForFacets','20',NULL,NULL,'Integer'),
213
('maxreserves','50','','Define maximum number of holds a patron can place','Integer'),
213
('maxreserves','50','','Define maximum number of holds a patron can place','Integer'),
214
('MembershipExpiryDaysNotice','14','Send an account expiration notice that a patron\'s card is about to expire after',NULL,'Integer'),
214
('MembershipExpiryDaysNotice',NULL,'Send an account expiration notice that a patron\'s card is about to expire after',NULL,'Integer'),
215
('minPasswordLength','3',NULL,'Specify the minimum length of a patron/staff password','free'),
215
('minPasswordLength','3',NULL,'Specify the minimum length of a patron/staff password','free'),
216
('NewItemsDefaultLocation','','','If set, all new items will have a location of the given Location Code ( Authorized Value type LOC )',''),
216
('NewItemsDefaultLocation','','','If set, all new items will have a location of the given Location Code ( Authorized Value type LOC )',''),
217
('noissuescharge','5','','Define maximum amount withstanding before check outs are blocked','Integer'),
217
('noissuescharge','5','','Define maximum amount withstanding before check outs are blocked','Integer'),
(-)a/misc/cronjobs/membership_expiry.pl (-1 / +8 lines)
Lines 132-137 pod2usage(1) if $help || !$confirm; Link Here
132
132
133
cronlogaction();
133
cronlogaction();
134
134
135
my $expdays = C4::Context->preference('MembershipExpiryDaysNotice');
136
if( !$expdays ) {
137
    #If the pref is not set, we will exit
138
    warn 'Exiting membership_expiry.pl: MembershipExpiryDaysNotice not set'
139
        if $verbose;
140
    exit;
141
}
142
135
my $admin_adress = C4::Context->preference('KohaAdminEmailAddress');
143
my $admin_adress = C4::Context->preference('KohaAdminEmailAddress');
136
warn 'getting upcoming membership expires' if $verbose;
144
warn 'getting upcoming membership expires' if $verbose;
137
my $upcoming_mem_expires = C4::Members::GetUpcomingMembershipExpires();
145
my $upcoming_mem_expires = C4::Members::GetUpcomingMembershipExpires();
138
- 

Return to bug 6810