Bug 24223: DBRev 21.06.00.045
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
dbec2d4951
commit
fa419b9e4c
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 = "21.06.00.044";
|
||||
$VERSION = "21.06.00.045";
|
||||
|
||||
sub version {
|
||||
return $VERSION;
|
||||
|
|
|
|||
|
|
@ -13,14 +13,10 @@ return {
|
|||
|);
|
||||
if( $opacnav ){
|
||||
# If there is a value in the OpacNav preference, insert it into additional_contents
|
||||
foreach my $lang ( 'default' ) {
|
||||
say $out "Inserting OpacNav contents into default";
|
||||
$dbh->do( "INSERT INTO additional_contents ( category, code, location, branchcode, title, content, lang, published_on ) VALUES ('html_customizations', 'OpacNav', 'OpacNav', NULL, ?, ?, ?, CAST(NOW() AS date) )", undef, "OpacNav $lang", $opacnav, $lang );
|
||||
}
|
||||
$dbh->do( "INSERT INTO additional_contents ( category, code, location, branchcode, title, content, lang, published_on ) VALUES ('html_customizations', 'OpacNav', 'OpacNav', NULL, ?, ?, 'default', CAST(NOW() AS date) )", undef, "OpacNav default", $opacnav );
|
||||
|
||||
# Remove the OpacNav system preference
|
||||
$dbh->do("DELETE FROM systempreferences WHERE variable='OpacNav'");
|
||||
say $out "Bug 24223 update done";
|
||||
} else {
|
||||
say $out "No OpacNav preference found. Update has already been run.";
|
||||
}
|
||||
Loading…
Reference in New Issue