Lines 8560-8565
if ( CheckVersion($DBversion) ) {
Link Here
|
8560 |
SetVersion($DBversion); |
8560 |
SetVersion($DBversion); |
8561 |
} |
8561 |
} |
8562 |
|
8562 |
|
|
|
8563 |
$DBversion = "3.17.00.XXX"; |
8564 |
if (C4::Context->preference("Version") < TransformToNum($DBversion)) { |
8565 |
my $borrowernumbers = $dbh->selectcol_arrayref("SELECT DISTINCT borrowernumber FROM user_permissions WHERE module_bit=15 AND code='claim_serials'"); |
8566 |
my $sth = $dbh->prepare("INSERT INTO user_permissions(borrowernumber, module_bit, code) VALUES (?, 15, 'superserials')"); |
8567 |
$sth->execute( $_ ) for @$borrowernumbers; |
8568 |
print "Upgrade to $DBversion done (Bug 8438 - Set the superserials permission for all users with the claim_serials permission.)\n"; |
8569 |
SetVersion ($DBversion); |
8570 |
} |
8571 |
|
8563 |
=head1 FUNCTIONS |
8572 |
=head1 FUNCTIONS |
8564 |
|
8573 |
|
8565 |
=head2 TableExists($table) |
8574 |
=head2 TableExists($table) |
8566 |
- |
|
|