Lines 8-18
return {
Link Here
|
8 |
my ($args) = @_; |
8 |
my ($args) = @_; |
9 |
my ( $dbh, $out ) = @$args{qw(dbh out)}; |
9 |
my ( $dbh, $out ) = @$args{qw(dbh out)}; |
10 |
|
10 |
|
11 |
# Do you stuffs here |
11 |
# Fix options field on EmailFieldSelection |
12 |
$dbh->do( |
12 |
$dbh->do( |
13 |
q{ UPDATE systempreferences SET options = 'email|emailpro|B_email' WHERE variable = 'EmailFieldSelection' } |
13 |
q{ UPDATE systempreferences SET options = 'email|emailpro|B_email' WHERE variable = 'EmailFieldSelection' } |
14 |
); |
14 |
); |
15 |
|
15 |
|
|
|
16 |
# Clear invalid value from EmailFieldSelection |
17 |
$dbh->do( |
18 |
q{ UPDATE systempreferences SET value = '' WHERE variable = 'EmailFieldSelection' AND value='email|emailpro|B_email' } |
19 |
); |
20 |
|
16 |
say_success( $out, "Updated system preference 'EmailFieldSelection'" ); |
21 |
say_success( $out, "Updated system preference 'EmailFieldSelection'" ); |
17 |
}, |
22 |
}, |
18 |
}; |
23 |
}; |
19 |
- |
|
|