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

(-)a/installer/data/mysql/updatedatabase.pl (-1 / +9 lines)
Lines 5536-5541 if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { Link Here
5536
    SetVersion($DBversion);
5536
    SetVersion($DBversion);
5537
}
5537
}
5538
5538
5539
$DBversion = "3.09.00.XXX";
5540
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
5541
    $dbh->do("UPDATE systempreferences set value=0 WHERE variable='OPACItemsResultsDisplay' AND value='statuses'");
5542
    $dbh->do("UPDATE systempreferences set value=1 WHERE variable='OPACItemsResultsDisplay' AND value='itemdetails'");
5543
    $dbh->do("UPDATE systempreferences SET explanation='If No, show only the status of items in result list. If Yes, show full location of items (branchlocation+callnumber) as in staff interface',options=NULL,type='YesNo' WHERE variable='OPACItemsResultsDisplay'");
5544
    print "Upgrade to $DBversion done (Fixes Bug 5409, Set the syspref value to 1 if it is itemdetails and 0 if it is statuses, leaving it alone if it is already 1 or 0 and change the type of the syspref to YesNo.)\n";
5545
    SetVersion ($DBversion);
5546
}
5547
5539
=head1 FUNCTIONS
5548
=head1 FUNCTIONS
5540
5549
5541
=head2 TableExists($table)
5550
=head2 TableExists($table)
5542
- 

Return to bug 5409