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

(-)a/installer/data/mysql/atomicupdate/bug_35169.pl (+23 lines)
Line 0 Link Here
1
use Modern::Perl;
2
3
return {
4
    bug_number  => "35169",
5
    description => "Add new system preferences for longoverdue.pl borrowers categories",
6
    up          => sub {
7
        my ($args) = @_;
8
        my ( $dbh, $out ) = @$args{qw(dbh out)};
9
10
        # Do you stuffs here
11
        $dbh->do(
12
            q{
13
            INSERT INTO systempreferences (variable, value, options, explanation, type) VALUES
14
            ('DefaultLongOverdueBorrowerCategories', '', NULL, NULL, NULL),
15
            ('DefaultLongOverdueSkipBorrowerCategories', '', NULL, NULL, NULL);
16
        }
17
        );
18
19
        # sysprefs
20
        say $out "Added new system preference 'DefaultLongOverdueBorrowerCategories'";
21
        say $out "Added new system preference 'DefaultLongOverdueSkipBorrowerCategories'";
22
    },
23
};
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref (-2 lines)
Lines 459-465 Circulation: Link Here
459
            - <br>WARNING — This preference will be active only if DefaultLongOverdueSkipBorrowerCategories is empty.
459
            - <br>WARNING — This preference will be active only if DefaultLongOverdueSkipBorrowerCategories is empty.
460
            - "<br><strong>NOTE:</strong> This system preference requires the <code>misc/cronjobs/longoverdue.pl</code> cronjob. Ask your system administrator to schedule it."
460
            - "<br><strong>NOTE:</strong> This system preference requires the <code>misc/cronjobs/longoverdue.pl</code> cronjob. Ask your system administrator to schedule it."
461
461
462
463
        -
462
        -
464
            - pref: DefaultLongOverdueSkipBorrowerCategories
463
            - pref: DefaultLongOverdueSkipBorrowerCategories
465
              choices: patron-categories
464
              choices: patron-categories
466
- 

Return to bug 35169