From 430b895dce611f49a491d702969335a5c026540e Mon Sep 17 00:00:00 2001 From: JT Smith Date: Sun, 7 Mar 2004 18:22:50 +0000 Subject: [PATCH] fixing bugs --- docs/upgrades/upgrade_5.9.9-6.0.0.pl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/upgrades/upgrade_5.9.9-6.0.0.pl b/docs/upgrades/upgrade_5.9.9-6.0.0.pl index 452ab6ee0..4739b8bee 100644 --- a/docs/upgrades/upgrade_5.9.9-6.0.0.pl +++ b/docs/upgrades/upgrade_5.9.9-6.0.0.pl @@ -481,7 +481,6 @@ while (my $data = $a->hashRef) { $templateId = 1; } WebGUI::SQL->write("update wobject set templateId=$templateId where wobjectId=".$data->{wobjectId}); - print "\tend loop\n"; } $a->finish; WebGUI::SQL->write("alter table SQLReport drop column template"); @@ -623,7 +622,7 @@ while (my $data = $a->hashRef) { my ($start) = WebGUI::SQL->quickArray("select min(dateOfResponse) from Survey_questionResponse where Survey_id=".$data->{Survey_id}." and ((userId=".quote($data->{userId})." and userId<>1) or (userId=1 and ipAddress=".quote($data->{ipAddress})."))"); WebGUI::SQL->write("update Survey_response set startDate=$start, endDate=$end where Survey_responseId=".$data->{Survey_responseId}); - WebGUI::SQL->quickArray("update Survey_questionResponse set Survey_responseId=".$data->{Survey_responseId}." where Survey_id=".$data->{Survey_id}." + WebGUI::SQL->write("update Survey_questionResponse set Survey_responseId=".$data->{Survey_responseId}." where Survey_id=".$data->{Survey_id}." and ((userId=".quote($data->{userId})." and userId<>1) or (userId=1 and ipAddress=".quote($data->{ipAddress})."))"); } $a->finish;