View | Details | Raw Unified | Return to bug 24223
Collapse All | Expand All

(-)a/installer/data/mysql/atomicupdate/bug_24223-move-opacnav-to-news.perl (-2 / +1 lines)
Lines 20-26 if( CheckVersion( $DBversion ) ) { Link Here
20
        foreach my $lang ( @langs ) {
20
        foreach my $lang ( @langs ) {
21
            print "Inserting OpacNav contents into $lang news item...\n";
21
            print "Inserting OpacNav contents into $lang news item...\n";
22
            # If there is a value in the OpacNav preference, insert it into opac_news
22
            # If there is a value in the OpacNav preference, insert it into opac_news
23
            $dbh->do("INSERT INTO opac_news (branchcode, lang, title, content ) VALUES (NULL, ?, '', ?)", undef, "OpacNav_$lang", $opacnav);
23
            $dbh->do("INSERT INTO opac_news (branchcode, lang, title, content, published_on ) VALUES (NULL, ?, '', ?, CAST(NOW() AS date))", undef, "OpacNav_$lang", $opacnav);
24
        }
24
        }
25
    }
25
    }
26
    # Remove the OpacNav system preference
26
    # Remove the OpacNav system preference
27
- 

Return to bug 24223