From a1403acb38bc03ce45d11944b57a608e04640613 Mon Sep 17 00:00:00 2001 From: JT Smith Date: Thu, 17 Feb 2005 07:08:32 +0000 Subject: [PATCH] fixed some bugs --- docs/upgrades/upgrade_6.2.11-6.3.0.pl | 3 +++ lib/WebGUI/Asset.pm | 2 +- lib/WebGUI/Session.pm | 1 - 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/upgrades/upgrade_6.2.11-6.3.0.pl b/docs/upgrades/upgrade_6.2.11-6.3.0.pl index 68e4ad51c..01b616589 100644 --- a/docs/upgrades/upgrade_6.2.11-6.3.0.pl +++ b/docs/upgrades/upgrade_6.2.11-6.3.0.pl @@ -1139,6 +1139,9 @@ my $newTemplate = $import->addChild({ namespace=>'Shortcut', title=>'Default Shortcut', menuTitle=>'Default Shortcut', + ownerUserId=>'3', + groupIdView=>'7', + groupIdEdit=>'4', isHidden=>1, template=>' diff --git a/lib/WebGUI/Asset.pm b/lib/WebGUI/Asset.pm index bf90a6476..70f78ed6d 100644 --- a/lib/WebGUI/Asset.pm +++ b/lib/WebGUI/Asset.pm @@ -2089,7 +2089,7 @@ If not specified, current user is used. sub updateHistory { my $self = shift; my $action = shift; - my $userId = shift || $session{user}{userId}; + my $userId = shift || $session{user}{userId} || '3'; my $dateStamp = time(); WebGUI::SQL->beginTransaction; WebGUI::SQL->write("insert into assetHistory (assetId, userId, actionTaken, dateStamp) values ( diff --git a/lib/WebGUI/Session.pm b/lib/WebGUI/Session.pm index 12fa17fdf..47d7d0563 100644 --- a/lib/WebGUI/Session.pm +++ b/lib/WebGUI/Session.pm @@ -327,7 +327,6 @@ sub open { $CGI::POST_MAX=-1; $session{cgi} = CGI->new(); } - return if ($session{setting}{specialState} eq "upgrading"); ###---------------------------- ### evironment variables from web server $session{env} = \%ENV;