Bug 37216: (follow-up) Clear invalid value

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Emily Lamancusa 2024-06-28 17:02:50 -04:00 committed by Katrin Fischer
parent fbcdce5e0a
commit 37683ffd69
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
1 changed files with 6 additions and 1 deletions

View File

@ -8,11 +8,16 @@ return {
my ($args) = @_;
my ( $dbh, $out ) = @$args{qw(dbh out)};
# Do you stuffs here
# Fix options field on EmailFieldSelection
$dbh->do(
q{ UPDATE systempreferences SET options = 'email|emailpro|B_email' WHERE variable = 'EmailFieldSelection' }
);
# Clear invalid value from EmailFieldSelection
$dbh->do(
q{ UPDATE systempreferences SET value = '' WHERE variable = 'EmailFieldSelection' AND value='email|emailpro|B_email' }
);
say_success( $out, "Updated system preference 'EmailFieldSelection'" );
},
};