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

(-)a/installer/data/mysql/atomicupdate/bug_37216.pl (-1 / +18 lines)
Line 0 Link Here
0
- 
1
use Modern::Perl;
2
use Koha::Installer::Output qw(say_warning say_failure say_success say_info);
3
4
return {
5
    bug_number  => "37216",
6
    description => "Ensure EmailFieldSelection options are correct",
7
    up          => sub {
8
        my ($args) = @_;
9
        my ( $dbh, $out ) = @$args{qw(dbh out)};
10
11
        # Do you stuffs here
12
        $dbh->do(
13
            q{ UPDATE systempreferences SET options = 'email|emailpro|B_email' WHERE variable = 'EmailFieldSelection' }
14
        );
15
16
        say_success( $out, "Updated system preference 'EmailFieldSelection'" );
17
    },
18
};

Return to bug 37216