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

(-)a/installer/data/mysql/atomicupdate/Bug_17187_dbrev.perl (+30 lines)
Line 0 Link Here
1
#!/usr/bin/perl
2
3
use Modern::Perl;
4
use C4::Context;
5
6
my $dbh = C4::Context->dbh;
7
my $DBversion = 'XXX';
8
9
# @RM: Copy from here
10
11
#if ( CheckVersion($DBversion) ) {
12
if ( 1 ) { #FIXME
13
    my $pref = C4::Context->preference('timeout');
14
    if( !$pref || $pref eq '12000000' ) {
15
        # update if pref is null or equals old default value
16
        $dbh->do(q|
17
UPDATE systempreferences SET value = '1d', type = 'Free'
18
WHERE variable = 'timeout'
19
        |);
20
        print "Upgrade to $DBversion done (Bug 17187)\nNote: Pref value for timeout has been adjusted.\n";
21
    } else {
22
        # only update pref type
23
        $dbh->do(q|
24
UPDATE systempreferences SET type = 'Free'
25
WHERE variable = 'timeout'
26
        |);
27
        print "Upgrade to $DBversion done (Bug 17187)\nNote: Pref value for timeout has not been adjusted.\n";
28
    }
29
    #SetVersion($DBversion); #FIXME
30
}
(-)a/installer/data/mysql/sysprefs.sql (-1 / +1 lines)
Lines 499-505 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
499
('template','prog','','Define the preferred staff interface template','Themes'),
499
('template','prog','','Define the preferred staff interface template','Themes'),
500
('ThingISBN','0','','Use with FRBRizeEditions. If ON, Koha will use the ThingISBN web service in the Editions tab on the detail pages.','YesNo'),
500
('ThingISBN','0','','Use with FRBRizeEditions. If ON, Koha will use the ThingISBN web service in the Editions tab on the detail pages.','YesNo'),
501
('TimeFormat','24hr','12hr|24hr','Defines the global time format for visual output.','Choice'),
501
('TimeFormat','24hr','12hr|24hr','Defines the global time format for visual output.','Choice'),
502
('timeout','12000000',NULL,'Inactivity timeout for cookies authentication (in seconds)','Integer'),
502
('timeout','1d',NULL,'Inactivity timeout for cookies authentication','Free'),
503
('todaysIssuesDefaultSortOrder','desc','asc|desc','Specify the sort order of Todays Issues on the circulation page','Choice'),
503
('todaysIssuesDefaultSortOrder','desc','asc|desc','Specify the sort order of Todays Issues on the circulation page','Choice'),
504
('TraceCompleteSubfields','0','0','Force subject tracings to only match complete subfields.','YesNo'),
504
('TraceCompleteSubfields','0','0','Force subject tracings to only match complete subfields.','YesNo'),
505
('TraceSubjectSubdivisions','0','1','Create searches on all subdivisions for subject tracings.','YesNo'),
505
('TraceSubjectSubdivisions','0','1','Create searches on all subdivisions for subject tracings.','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/admin.pref (-2 lines)
Lines 75-81 Administration: Link Here
75
        -
75
        -
76
            - Automatically log out users after
76
            - Automatically log out users after
77
            - pref: timeout
77
            - pref: timeout
78
              class: integer
79
            - seconds of inactivity. Adding d will specify it in days, e.g. 1d is timeout of one day.
78
            - seconds of inactivity. Adding d will specify it in days, e.g. 1d is timeout of one day.
80
        -
79
        -
81
            - pref: AutoLocation
80
            - pref: AutoLocation
82
- 

Return to bug 17187