From be997f924e50ebbca16dbafff951ed6567362e1f Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Wed, 3 Nov 2010 13:49:00 -0400 Subject: [PATCH] bug 4141: fix upgrade of OPAC XSLT parameters from 3.0.x Note that OPACXSLTResultsDisplay and OPACXSLTDetailsDisplay are boolean parameters in 3.2.x, not string parameters. Signed-off-by: Galen Charlton Signed-off-by: Chris Cormack --- installer/data/mysql/updatedatabase.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 64905499ee..a6f6be6daf 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -3448,11 +3448,11 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) { my $value = C4::Context->preference("XSLTResultsDisplay"); $dbh->do( "INSERT INTO systempreferences (variable,value,type) - VALUES('OPACXSLTResultsDisplay',$value,'YesNo')"); + VALUES('OPACXSLTResultsDisplay',?,'YesNo')", {}, $value ? 1 : 0); $value = C4::Context->preference("XSLTDetailsDisplay"); $dbh->do( "INSERT INTO systempreferences (variable,value,type) - VALUES('OPACXSLTDetailsDisplay',$value,'YesNo')"); + VALUES('OPACXSLTDetailsDisplay',?,'YesNo')", {}, $value ? 1 : 0); print "Upgrade done (added two new syspref: OPACXSLTResultsDisplay and OPACXSLTDetailDisplay). You may have to go in Admin > System preference to tweak XSLT related syspref both in OPAC and Search tabs.\n "; SetVersion ($DBversion); } -- 2.39.5