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:
parent
34acff4fa0
commit
f9efb8024b
|
|
@ -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' );
|
||||
|
|
|
|||
Loading…
Reference in New Issue