Bug 14385: DBRev 18.06.00.050
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
parent
70651422a7
commit
7a1641cd41
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
2
Koha.pm
2
Koha.pm
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue