From 886d570e2686355b917bf3ca92c2dad029160352 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 9 Sep 2020 12:28:13 +0000 Subject: [PATCH] Bug 20168: DBRev 20.06.00.036 Signed-off-by: Jonathan Druart --- Koha.pm | 2 +- .../bug-20168-update-opacsearchfortitlein-preference.perl | 7 ------- installer/data/mysql/updatedatabase.pl | 8 ++++++++ 3 files changed, 9 insertions(+), 8 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug-20168-update-opacsearchfortitlein-preference.perl diff --git a/Koha.pm b/Koha.pm index 93aaaccab4..abf5adf1f7 100644 --- 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 = "20.06.00.035"; +$VERSION = "20.06.00.036"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug-20168-update-opacsearchfortitlein-preference.perl b/installer/data/mysql/atomicupdate/bug-20168-update-opacsearchfortitlein-preference.perl deleted file mode 100644 index e048a9cc27..0000000000 --- a/installer/data/mysql/atomicupdate/bug-20168-update-opacsearchfortitlein-preference.perl +++ /dev/null @@ -1,7 +0,0 @@ -$DBversion = 'XXX'; # will be replaced by the RM -if( CheckVersion( $DBversion ) ) { - # Fix the markup in the OPACSearchForTitleIn system preference - $dbh->do("UPDATE systempreferences SET VALUE = replace( value, '', ''), value = REPLACE( value, '
  • ', '') WHERE VARIABLE = 'OPACSearchForTitleIn';"); - - NewVersion( $DBversion, 20168, "Update OPACSearchForTitleIn to work with Bootstrap 4"); -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index fb1cedf9cd..8a4f29aad2 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -22769,6 +22769,14 @@ if ( CheckVersion( $DBversion ) ) { NewVersion( $DBversion, 23682, "Add new system preference 'EdifactInvoiceImport'" ); } +$DBversion = '20.06.00.036'; +if( CheckVersion( $DBversion ) ) { + # Fix the markup in the OPACSearchForTitleIn system preference + $dbh->do("UPDATE systempreferences SET VALUE = replace( value, '
  • ', ''), value = REPLACE( value, '
  • ', '') WHERE VARIABLE = 'OPACSearchForTitleIn';"); + + NewVersion( $DBversion, 20168, "Update OPACSearchForTitleIn to work with Bootstrap 4"); +} + # SEE bug 13068 # if there is anything in the atomicupdate, read and execute it. my $update_dir = C4::Context->config('intranetdir') . '/installer/data/mysql/atomicupdate/'; -- 2.20.1