bug 3923 followup - change orderpdfformat value if set wrong due to upgrade

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
This commit is contained in:
Nicole Engard 2010-02-05 05:23:42 -05:00 committed by Galen Charlton
parent 65540255d8
commit 0ded44769a
1 changed files with 9 additions and 0 deletions

View File

@ -3429,6 +3429,15 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
SetVersion ($DBversion);
}
$DBversion = 'XXX';
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
if (C4::Context->preference('OrderPdfFormat') eq 'pdfformat::example'){
$dbh->do("UPDATE `systempreferences` set value='pdfformat::layout2pages' WHERE variable='OrderPdfFormat'");
}
print "Upgrade done ( corrected default OrderPdfFormat value is still set wrong )\n";
SetVersion ($DBversion);
}
=item DropAllForeignKeys($table)
Drop all foreign keys of the table $table