Bug 14385: DBRev 18.06.00.050

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
Nick Clemens 2018-11-02 10:31:47 +00:00
parent 70651422a7
commit 7a1641cd41
4 changed files with 11 additions and 3 deletions

View File

@ -1293,7 +1293,7 @@ sub GetHiddenItemnumbers {
if (my $exceptions = C4::Context->preference('OpacHiddenItemsExceptions') and $params->{'borcat'}){
foreach my $except (split(/\|/, $exceptions)){
if ($params->{'borcat'} eq $except){
return; # we dont hide anything for this borrower category
return; # we don't hide anything for this borrower category
}
}
}

View File

@ -29,7 +29,7 @@ use vars qw{ $VERSION };
# - #4 : the developer version. The 4th number is the database subversion.
# used by developers when the database changes. updatedatabase take care of the changes itself
# and is automatically called by Auth.pm when needed.
$VERSION = "18.06.00.049";
$VERSION = "18.06.00.050";
sub version {
return $VERSION;

View File

@ -1 +0,0 @@
INSERT IGNORE INTO systempreferences (`variable`, `value`, `options`, `explanation`, `type`) VALUES ('OpacHiddenItemsExceptions','',NULL,'List of borrower categories, separated by |, that can see items otherwise hidden by OpacHiddenItems','Textarea');

View File

@ -16766,6 +16766,15 @@ if( CheckVersion( $DBversion ) ) {
SetVersion( $DBversion );
}
$DBversion = '18.06.00.050';
if( CheckVersion( $DBversion ) ) {
$dbh->do(q{
INSERT IGNORE INTO systempreferences (`variable`, `value`, `options`, `explanation`, `type`) VALUES ('OpacHiddenItemsExceptions','',NULL,'List of borrower categories, separated by |, that can see items otherwise hidden by OpacHiddenItems','Textarea');
});
print "Upgrade to $DBversion done (Bug 14385 - Add OpacHiddenItemExceptions)\n";
SetVersion( $DBversion );
}
# SEE bug 13068
# if there is anything in the atomicupdate, read and execute it.