bug 5007: fixing the syspref for IntranetBiblioDefaultView
[koha.git] / installer / data / mysql / updatedatabase.pl
index 68e7cbc..6560aed 100755 (executable)
@@ -3687,6 +3687,13 @@ if (C4::Context->preference('Version') < TransformToNum($DBversion)){
     SetVersion ($DBversion);
 }
 
+$DBversion = '3.01.00.144';
+if (C4::Context->preference('Version') < TransformToNum($DBversion)){
+    $dbh->do(qq{UPDATE systempreferences SET value='normal' where value='default' and variable='IntranetBiblioDefaultView'});
+    print "Update the 'default' to 'normal' for the IntranetBiblioDefaultView syspref (bug 5007)";
+    SetVersion ($DBversion);
+}
+
 
 =item DropAllForeignKeys($table)