From 44738aff8b0edd3a62ec078e0feef89298eaba86 Mon Sep 17 00:00:00 2001 From: JT Smith Date: Mon, 13 Sep 2004 18:44:14 +0000 Subject: [PATCH] bug fixes --- docs/changelog/6.x.x.txt | 4 ++++ docs/create.sql | 4 ++-- docs/gotcha.txt | 15 +++++++-------- docs/upgrades/upgrade_6.2.1-6.2.2.sql | 4 ++-- lib/WebGUI/Operation/MessageLog.pm | 4 ++-- 5 files changed, 17 insertions(+), 14 deletions(-) diff --git a/docs/changelog/6.x.x.txt b/docs/changelog/6.x.x.txt index e33c05614..e20d60374 100644 --- a/docs/changelog/6.x.x.txt +++ b/docs/changelog/6.x.x.txt @@ -17,6 +17,10 @@ - bugfix [ 1024073 ] Problem with Collateral Management (ID?) - bugfix [ 1023688 ] upgrade.pl from 6.03 - 6.10 using 6.2.1 beta - bugfix [ 1024079 ] "Software error" message + - bugfix [ 1027362 ] 6.2.1 Page Tree + - bugfix [ 1027333 ] 6.2.1 Page Tree + - bugfix [ 1027129 ] view message causes error + - bugfix [ 1024079 ] "Software error" message diff --git a/docs/create.sql b/docs/create.sql index 61202102e..9cd4f7891 100644 --- a/docs/create.sql +++ b/docs/create.sql @@ -2759,7 +2759,7 @@ INSERT INTO template VALUES ('1','Default HTTP Proxy','\r\ INSERT INTO template VALUES ('1','Default Message Board','\n

\n
\n\n\n

\n\n\n\n \">

\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n \">
\n \n
\n \">\n by \n \n \n \n \">\n \n on @ \n
\n\n

\n \n
\n
\n

\n \n','MessageBoard',1,1); INSERT INTO template VALUES ('1','Default Post Form','

\n\n\n\n\n\n \n\n\n\n\n\n\n \n \n \n \n \n \n \n\n\n\n\n\n
\n\n\n

\n\n

','Forum/PostForm',1,1); INSERT INTO template VALUES ('1','Default Post','

\n\n\n\n\n\n
\n\n\n \n

\n \">\n \n • : [ \">1, \">2, \n \">3, \">4, \">5 ]\n \n \n \n • \">\n • \">\n \n \n • \">\n • \">\n \n\n

\n: @
\n:
\n:
\n:
\n\n :
\n\n : \">
\n
\n
','Forum/Post',1,1); -INSERT INTO template VALUES ('1','Default Thread','
\n\n\n
\n
\n\n \n \">\n \n
style=\"border: 4px dotted #aaaaaa; padding: 5px;\">\n \n
style=\"border: 4px dotted #aaaaaa; padding: 5px;\">\n \n \n
\n \n\n\n\n \n \n \n \n \n \n \n \n
         \n \">\n \n
style=\"border: 4px dotted #aaaaaa; padding: 5px;\">\n \n
style=\"border: 4px dotted #aaaaaa; padding: 5px;\">\n \n \n
\n
\n
\n
\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
   \">\"> @
\n
\n\n

\n\"> •\n\"> •\n\"> \n\n • \">\n \n •\n \n \">\n \n \">\n \n \n \n •\n \n \">\n \n \">\n \n •\n \n \">\n \n \">\n \n \n\n\n

\n','Forum/Thread',1,1); +INSERT INTO template VALUES ('1','Default Thread','

\n\n\n
\n
\n\n \n \">\n \n
style=\"border: 4px dotted #aaaaaa; padding: 5px;\">\n \n
style=\"border: 4px dotted #aaaaaa; padding: 5px;\">\n \n \n
\n \n\n\n\n \n \n \n \n \n \n \n \n
         \n \">\n \n
style=\"border: 4px dotted #aaaaaa; padding: 5px;\">\n \n
style=\"border: 4px dotted #aaaaaa; padding: 5px;\">\n \n \n
\n
\n
\n
\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
   \">\"> @
\n
\n\n

\n\"> •\n\"> •\n\"> \n\n • \">\n \n •\n \n \">\n \n \">\n \n \n \n •\n \n \">\n \n \">\n \n •\n \n \">\n \n \">\n \n \n\n\n\n

\n · · \n
\n\n\n','Forum/Thread',1,1); INSERT INTO template VALUES ('1','Default Forum Notification','\n\n','Forum/Notification',1,1); INSERT INTO template VALUES ('1','Default Forum Search','\n\n\n \n
\n

\n
\n \n \'\n \n \n \n \n
\n
\n \n
\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\">\"> @
\n
\n\n\n
\n · · \n
\n
','Forum/Search',1,1); INSERT INTO template VALUES ('1000','AutoGen ^t;','\n\n\n\n\ntarget=\"_blank\"\n href=\"\">\n · \n\n','Navigation',1,1); @@ -3093,7 +3093,7 @@ CREATE TABLE webguiVersion ( -- -INSERT INTO webguiVersion VALUES ('6.2.1','initial install',unix_timestamp()); +INSERT INTO webguiVersion VALUES ('6.2.2','initial install',unix_timestamp()); -- -- Table structure for table `wobject` diff --git a/docs/gotcha.txt b/docs/gotcha.txt index 1cac7fb69..6361a8a5a 100644 --- a/docs/gotcha.txt +++ b/docs/gotcha.txt @@ -9,14 +9,13 @@ save you many hours of grief. 6.2.2 -------------------------------------------------------------------- - * If you're on a Windows environment and upgrading to 6.2 you'll - need to set a TZ environment variable. Our recommendation is - to set the variable like follows - - TZ = EST5EDT - - If your first install is the WebGUI 6.2 zip-n-go then you - won't need to do this, as the installer will do it for you. + * If you used 6.1.1 for a while, and feel like there's something + wrong with your navigation or page tree, then there just + might be. We corrected a rather large problem in the Page + system that could have caused page tree corruption. To test + and fix this problem, get the page tree tools from the user + contribs area of plainblack.com. Be sure to back up your + databases before using this tool. 6.2.0 diff --git a/docs/upgrades/upgrade_6.2.1-6.2.2.sql b/docs/upgrades/upgrade_6.2.1-6.2.2.sql index 341629b17..9a4bc69ac 100644 --- a/docs/upgrades/upgrade_6.2.1-6.2.2.sql +++ b/docs/upgrades/upgrade_6.2.1-6.2.2.sql @@ -1,3 +1,3 @@ -insert into webguiVersion values ('6.2.1','upgrade',unix_timestamp()); -update template set template='
\n\n\n
\n
\n\n \n \">\n \n
style=\"border: 4px dotted #aaaaaa; padding: 5px;\">\n \n
style=\"border: 4px dotted #aaaaaa; padding: 5px;\">\n \n \n
\n \n\n\n\n \n \n \n \n \n \n \n \n
         \n \">\n \n
style=\"border: 4px dotted #aaaaaa; padding: 5px;\">\n \n
style=\"border: 4px dotted #aaaaaa; padding: 5px;\">\n \n \n
\n
\n
\n
\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
   \">\"> @
\n
\n\n

\n\"> •\n\"> •\n\"> \n\n • \">\n \n •\n \n \">\n \n \">\n \n \n \n •\n \n \">\n \n \">\n \n •\n \n \">\n \n \">\n \n \n\n\n\n

\n · · \n
\n\n\n' where namespace='Forum/Thread' and templateId=1; +insert into webguiVersion values ('6.2.2','upgrade',unix_timestamp()); +update template set template='

\n\n\n
\n
\n\n \n \">\n \n
style=\"border: 4px dotted #aaaaaa; padding: 5px;\">\n \n
style=\"border: 4px dotted #aaaaaa; padding: 5px;\">\n \n \n
\n \n\n\n\n \n \n \n \n \n \n \n \n
         \n \">\n \n
style=\"border: 4px dotted #aaaaaa; padding: 5px;\">\n \n
style=\"border: 4px dotted #aaaaaa; padding: 5px;\">\n \n \n
\n
\n
\n
\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
   \">\"> @
\n
\n\n

\n\"> •\n\"> •\n\"> \n\n • \">\n \n •\n \n \">\n \n \">\n \n \n \n •\n \n \">\n \n \">\n \n •\n \n \">\n \n \">\n \n \n\n\n\n

\n · · \n
\n\n\n' where namespace='Forum/Thread' and templateId=1; diff --git a/lib/WebGUI/Operation/MessageLog.pm b/lib/WebGUI/Operation/MessageLog.pm index 89f78bc64..bfb1956b5 100644 --- a/lib/WebGUI/Operation/MessageLog.pm +++ b/lib/WebGUI/Operation/MessageLog.pm @@ -40,7 +40,7 @@ sub www_viewMessageLog { WebGUI::Privilege::insufficient() unless (WebGUI::Grouping::isInGroup(2,$session{user}{userId})); $vars->{displayTitle} = '

'.WebGUI::International::get(159).'

'; my $p = WebGUI::Paginator->new(WebGUI::URL::page('op=viewMessageLog')); - my $query = "select messageLogId,subject,url,dateOfEntry,status from messageLog where userId=$session{user}{userId} order by dateOfEntry desc"; + my $query = "select messageLogId,subject,url,dateOfEntry,status from messageLog where userId=".quote($session{user}{userId})." order by dateOfEntry desc"; $p->setDataByQuery($query); $vars->{'message.subject.label'} = WebGUI::International::get(351); @@ -77,7 +77,7 @@ sub www_viewMessageLogMessage { return WebGUI::Privilege::insufficient() unless (WebGUI::Grouping::isInGroup(2,$session{user}{userId})); $vars->{displayTitle} = '

'.WebGUI::International::get(159).'

'; - $data = WebGUI::SQL->quickHashRef("select * from messageLog where messageLogId=$session{form}{mlog} and userId=$session{user}{userId}"); + $data = WebGUI::SQL->quickHashRef("select * from messageLog where messageLogId=".quote($session{form}{mlog})." and userId=".quote($session{user}{userId})); $vars->{'message.subject'} = $data->{subject}; $vars->{'message.dateOfEntry'} = epochToHuman($data->{dateOfEntry});