From 6afe9da116cc9310eef0a780549ae20901326d65 Mon Sep 17 00:00:00 2001 From: JT Smith Date: Sat, 11 Sep 2004 15:37:31 +0000 Subject: [PATCH] fixed bugs --- docs/changelog/6.x.x.txt | 3 +++ docs/gotcha.txt | 12 ++++++++++++ lib/WebGUI/Operation/Template.pm | 4 ++-- 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/docs/changelog/6.x.x.txt b/docs/changelog/6.x.x.txt index c0a26f088..46dc320e3 100644 --- a/docs/changelog/6.x.x.txt +++ b/docs/changelog/6.x.x.txt @@ -1,11 +1,14 @@ 6.2.2 - Made a dramatic performance enhancement to the page tree system by restructuring an overused, and inefficent method. + - Added a gotcha warning about setting the TZ environment variable on Windows + systems. - bugfix [1024275]. Drag and drop not working (Leendert Bottelberghs). - bugfix [ 1025671 ] Crash on manage page tree. (Leendert Bottelberghs) - bugfix [ 1025271 ] Cut page not working. (Leendert Bottelberghs) - bugfix [ 1024643 ] Unknown column error. (Leendert Bottelberghs) - bugfix [ 1025120 ] Pagination in forum thread doesn't work. New default thread template. (Leendert Bottelberghs) + - Fixed a bug where you couldn't delete templates. 6.2.1 diff --git a/docs/gotcha.txt b/docs/gotcha.txt index 292c4c9ac..1cac7fb69 100644 --- a/docs/gotcha.txt +++ b/docs/gotcha.txt @@ -7,6 +7,18 @@ upgrading from one version to the next, or even between multiple versions. Be sure to heed the warnings contained herein as they will 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. + + 6.2.0 -------------------------------------------------------------------- * WebGUI now requires Time::HiRes to operate. Be sure to have it diff --git a/lib/WebGUI/Operation/Template.pm b/lib/WebGUI/Operation/Template.pm index 53abb56e6..d1bce2586 100644 --- a/lib/WebGUI/Operation/Template.pm +++ b/lib/WebGUI/Operation/Template.pm @@ -67,7 +67,7 @@ sub www_copyTemplate { #------------------------------------------------------------------- sub www_deleteTemplate { my ($output); - if ($session{form}{tid} < 1000 && $session{form}{tid} > 0) { + if ($session{form}{tid} =~ /^\d+$/ && $session{form}{tid} < 1000 && $session{form}{tid} > 0) { return WebGUI::Privilege::vitalComponent(); } elsif (WebGUI::Grouping::isInGroup(8)) { $output .= helpIcon("template delete"); @@ -88,7 +88,7 @@ sub www_deleteTemplate { #------------------------------------------------------------------- sub www_deleteTemplateConfirm { my ($a, $pageId); - if ($session{form}{tid} < 1000 && $session{form}{tid} > 1000) { + if ($session{form}{tid} =~ /^\d+$/ && $session{form}{tid} < 1000 && $session{form}{tid} > 0) { return WebGUI::Privilege::vitalComponent(); } elsif (WebGUI::Grouping::isInGroup(8)) { if ($session{form}{namespace} eq "Page") {