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

(-)a/installer/data/mysql/atomicupdate/bug_4944_OpacNoItemTypeImages.perl (-4 / +5 lines)
Lines 1-9 Link Here
1
$DBversion = 'XXX'; # will be replaced by the RM
1
$DBversion = 'XXX'; # will be replaced by the RM
2
if( CheckVersion( $DBversion ) ) {
2
if( CheckVersion( $DBversion ) ) {
3
3
4
    my $noItemTypeImages = C4::Context->preference('noItemTypeImages');
4
    $dbh->do( q|
5
    $dbh->do( "INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` )
5
        INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` )
6
        VALUES('OpacNoItemTypeImages',$noItemTypeImages,NULL,'If ON, disables itemtype images in the OPAC','YesNo')" );
6
            SELECT 'OpacNoItemTypeImages', value, NULL, 'If ON, disables itemtype images in the OPAC','YesNo'
7
            FROM (SELECT value FROM systempreferences WHERE variable="NoItemTypeImages") tmp
8
    | );
7
    $dbh->do( "UPDATE systempreferences SET explanation = 'If ON, disables itemtype images in the staff interface'
9
    $dbh->do( "UPDATE systempreferences SET explanation = 'If ON, disables itemtype images in the staff interface'
8
        WHERE variable = 'noItemTypeImages' ");
10
        WHERE variable = 'noItemTypeImages' ");
9
11
10
- 

Return to bug 4944