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

(-)a/installer/data/mysql/atomicupdate/bug_35630.pl (+19 lines)
Line 0 Link Here
1
use Modern::Perl;
2
3
return {
4
    bug_number  => "35630",
5
    description => "Add AuthorizedValuesLog system preference",
6
    up          => sub {
7
        my ($args) = @_;
8
        my ( $dbh, $out ) = @$args{qw(dbh out)};
9
10
        $dbh->do(
11
            q{
12
            INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` )
13
            VALUES ('AuthorizedValuesLog', '0', 'If enabled, log authorized value changes', '' , 'YesNo')
14
        }
15
        );
16
17
        say $out "Added new system preference 'AuthorizedValuesLog'";
18
    },
19
};
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+1 lines)
Lines 79-84 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
79
('AuthorityXSLTOpacDetailsDisplay','','','Enable XSL stylesheet control over authority details page in the OPAC','Free'),
79
('AuthorityXSLTOpacDetailsDisplay','','','Enable XSL stylesheet control over authority details page in the OPAC','Free'),
80
('AuthorityXSLTOpacResultsDisplay','','','Enable XSL stylesheet control over authority results page in the OPAC','Free'),
80
('AuthorityXSLTOpacResultsDisplay','','','Enable XSL stylesheet control over authority results page in the OPAC','Free'),
81
('AuthorityXSLTResultsDisplay','','','Enable XSL stylesheet control over authority results page display on intranet','Free'),
81
('AuthorityXSLTResultsDisplay','','','Enable XSL stylesheet control over authority results page display on intranet','Free'),
82
('AuthorizedValuesLog', '0', 'If enabled, log authorized value changes', '' , 'YesNo'),
82
('AuthorLinkSortBy','default','call_number|pubdate|acqdate|title','Specify the default field used for sorting when click author links','Choice'),
83
('AuthorLinkSortBy','default','call_number|pubdate|acqdate|title','Specify the default field used for sorting when click author links','Choice'),
83
('AuthorLinkSortOrder','asc','asc|dsc|az|za','Specify the default sort order for author links','Choice'),
84
('AuthorLinkSortOrder','asc','asc|dsc|az|za','Specify the default sort order for author links','Choice'),
84
('AuthSuccessLog','0',NULL,'If enabled, log successful authentications','YesNo'),
85
('AuthSuccessLog','0',NULL,'If enabled, log successful authentications','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/logs.pref (-2 / +7 lines)
Lines 120-126 Logging: Link Here
120
                  1: Log
120
                  1: Log
121
                  0: "Don't log"
121
                  0: "Don't log"
122
            - any changes to purchase suggestions (create, modify, delete ).
122
            - any changes to purchase suggestions (create, modify, delete ).
123
123
        -
124
            - pref: AuthorizedValuesLog
125
              choices:
126
                  1: Log
127
                  0: "Don't log"
128
            - any changes to authorized values (create, modify, delete ).
129
        
124
    Debugging:
130
    Debugging:
125
        -
131
        -
126
            - "When logging actions, store a stack trace that goes at most"
132
            - "When logging actions, store a stack trace that goes at most"
127
- 

Return to bug 35630