From a8ad826c76ed982b6562f98c2cad192991f8f18d Mon Sep 17 00:00:00 2001 From: JT Smith Date: Fri, 13 Dec 2002 05:32:27 +0000 Subject: [PATCH] Postgres fixes. --- docs/upgrades/upgrade_4.9.2-4.9.3.sql | 1 + lib/WebGUI/Operation/Account.pm | 2 +- lib/WebGUI/Operation/Page.pm | 1 + lib/WebGUI/Wobject/Survey.pm | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/upgrades/upgrade_4.9.2-4.9.3.sql b/docs/upgrades/upgrade_4.9.2-4.9.3.sql index efc202146..5712c0759 100644 --- a/docs/upgrades/upgrade_4.9.2-4.9.3.sql +++ b/docs/upgrades/upgrade_4.9.2-4.9.3.sql @@ -1483,6 +1483,7 @@ delete from international where languageId=3 and namespace='WebGUI' and internat insert into international (internationalId,languageId,namespace,message,lastUpdated) values (669,3,'WebGUI','Macros, Gebruiken', 1038484152); delete from template where templateId=3 and namespace='USS'; INSERT INTO template VALUES (3,'Weblog','\r\n

\r\n
\r\n\r\n\r\n

\r\n\r\n\r\n\r\n\r\n \r\n\r\n\r\n\r\n\r\n \"> ·\r\n\r\n\r\n\r\n\">\r\n

\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n \r\n ()\r\n \r\n
\r\n \r\n \">\" border=\"0\" align=\"right\"/>\r\n \r\n \"> -
\r\n\r\n

( \">\r\n \r\n | \r\n \r\n )

\r\n

\r\n\r\n\r\n

\r\n · \r\n
\r\n
\r\n','USS'); +alter table users change status status varchar(35) not null default 'Active'; diff --git a/lib/WebGUI/Operation/Account.pm b/lib/WebGUI/Operation/Account.pm index 332bbeb17..1c7392ddd 100644 --- a/lib/WebGUI/Operation/Account.pm +++ b/lib/WebGUI/Operation/Account.pm @@ -399,7 +399,7 @@ sub www_login { _logLogin($uid,"success"); return ""; } else { - _logLogin($uid, $success); + _logLogin($uid, "failure"); WebGUI::ErrorHandler::security("login to account ".$session{form}{username}." with invalid information."); return "

".WebGUI::International::get(70)."

".$success.www_displayLogin(); } diff --git a/lib/WebGUI/Operation/Page.pm b/lib/WebGUI/Operation/Page.pm index 8a50ae950..4b681b0c9 100644 --- a/lib/WebGUI/Operation/Page.pm +++ b/lib/WebGUI/Operation/Page.pm @@ -208,6 +208,7 @@ sub www_deletePageConfirm { sub www_editPage { my ($f, $endDate, $output, $subtext, $childCount, %hash, %page); tie %hash, "Tie::IxHash"; + tie %page, "Tie::CPHash"; if (WebGUI::Privilege::canEditPage($session{form}{npp})) { $f = WebGUI::HTMLForm->new; if ($session{form}{npp} ne "") { diff --git a/lib/WebGUI/Wobject/Survey.pm b/lib/WebGUI/Wobject/Survey.pm index b3ebaaba0..8ff7b35ef 100644 --- a/lib/WebGUI/Wobject/Survey.pm +++ b/lib/WebGUI/Wobject/Survey.pm @@ -690,7 +690,7 @@ sub www_viewGradebook { $output = '

'.WebGUI::International::get(71,$namespace).'

'; $p = WebGUI::Paginator->new('func=viewGradebook&wid='.$_[0]->get("wobjectId")); $p->setDataByQuery("select userId,username,ipAddress from Survey_response - group by userId,ipAddress order by username,ipAddress"); + group by userId,username,ipAddress order by username,ipAddress"); $users = $p->getPageData; my ($questionCount) = WebGUI::SQL->quickArray("select count(*) from Survey_question where Survey_id=".$_[0]->get("Survey_id"));