Bug 14385: DBRev 18.06.00.050
authorNick Clemens <nick@bywatersolutions.com>
Fri, 2 Nov 2018 10:31:47 +0000 (10:31 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 2 Nov 2018 10:34:02 +0000 (10:34 +0000)
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

C4/Items.pm
Koha.pm
installer/data/mysql/atomicupdate/bug_14385-add_OpacHiddenItemsExceptions_syspref.sql [deleted file]
installer/data/mysql/updatedatabase.pl

index 4dd3bad..8f3ef33 100644 (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
             }
         }
     }
diff --git a/Koha.pm b/Koha.pm
index cdf1615..2ff8513 100644 (file)
--- a/Koha.pm
+++ b/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;
diff --git a/installer/data/mysql/atomicupdate/bug_14385-add_OpacHiddenItemsExceptions_syspref.sql b/installer/data/mysql/atomicupdate/bug_14385-add_OpacHiddenItemsExceptions_syspref.sql
deleted file mode 100644 (file)
index 5cde421..0000000
+++ /dev/null
@@ -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');
index 6e9d899..a537a15 100755 (executable)
@@ -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.