Bug 25858: (bug 25858 follow-up) Don't attempt to set flag if already set

Signed-off-by: Didier Gautheron <didier.gautheron@biblibre.com>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit e38634ceb8)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Nick Clemens 2020-06-24 10:06:57 +00:00 committed by Lucas Gass
parent 34acff4fa0
commit f9efb8024b
1 changed files with 1 additions and 1 deletions

View File

@ -20650,7 +20650,7 @@ if( CheckVersion( $DBversion ) ) {
});
$dbh->do(q{
UPDATE borrowers SET flags = flags + (1<<12) WHERE flags & (1 << 11)
UPDATE borrowers SET flags = flags + (1<<12) WHERE flags & (1 << 11) AND !(flags & (1 << 12))
});
NewVersion( $DBversion, 22868, 'Move suggestions_manage subpermission out of acquisition permission' );