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

(-)a/installer/data/mysql/atomicupdate/bug_26247-add_RetainCatalogSearchTerms_syspref.pl (-12 lines)
Lines 1-12 Link Here
1
use Modern::Perl;
2
3
return {
4
    bug_number => "26247",
5
    description => "Add new system preference RetainCatalogSearchTerms",
6
    up => sub {
7
        my ($args) = @_;
8
        my ($dbh, $out) = @$args{qw(dbh out)};
9
10
        $dbh->do(q{INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('RetainCatalogSearchTerms', '1', NULL, 'If enabled, searches entered into the catalog search bar will be retained', 'YesNo') });
11
    },
12
};
(-)a/installer/data/mysql/atomicupdate/bug_26247-add_RetainPatronsSearchTerms_syspref.pl (-12 lines)
Lines 1-12 Link Here
1
use Modern::Perl;
2
3
return {
4
    bug_number => "26247",
5
    description => "Add new system preference RetainPatronsSearchTerms",
6
    up => sub {
7
        my ($args) = @_;
8
        my ($dbh, $out) = @$args{qw(dbh out)};
9
10
        $dbh->do(q{INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('RetainPatronSearchTerms', '1', NULL, 'If enabled, searches entered into the checkout and patrons search bars will be retained', 'YesNo') });
11
    },
12
};
(-)a/installer/data/mysql/atomicupdate/bug_26247.pl (-1 / +16 lines)
Line 0 Link Here
0
- 
1
use Modern::Perl;
2
3
return {
4
    bug_number => "26247",
5
    description => "Add new retain search terms preferences",
6
    up => sub {
7
        my ($args) = @_;
8
        my ($dbh, $out) = @$args{qw(dbh out)};
9
10
        $dbh->do(q{INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('RetainCatalogSearchTerms', '1', NULL, 'If enabled, searches entered into the catalog search bar will be retained', 'YesNo') });
11
        say $out "Added `RetainCatalogSearchTerms` preference";
12
        
13
        $dbh->do(q{INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('RetainPatronSearchTerms', '1', NULL, 'If enabled, searches entered into the checkout and patrons search bars will be retained', 'YesNo') });
14
        say $out "Added `RetainPatronsSearchTerms` preference";
15
    },        
16
};

Return to bug 26247