From 88c42da7a0c8a6f2acf0d431c33dae849fa9081a Mon Sep 17 00:00:00 2001 From: JT Smith Date: Mon, 7 Mar 2005 19:38:17 +0000 Subject: [PATCH] bug fixes --- docs/changelog/6.x.x.txt | 4 ++++ docs/upgrades/upgrade_6.4.0-6.5.0.sql | 2 +- lib/WebGUI/AdminConsole.pm | 2 +- lib/WebGUI/Asset/Post.pm | 23 +++++++++++--------- lib/WebGUI/Asset/Wobject/Survey.pm | 8 +++---- lib/WebGUI/HTMLForm.pm | 2 +- lib/WebGUI/Operation/Auth.pm | 2 +- lib/WebGUI/Operation/Help.pm | 4 ++-- lib/WebGUI/Operation/Profile.pm | 2 +- lib/WebGUI/i18n/English/Asset.pm | 2 +- sbin/uploadsAccessHandler.perl | 2 +- www/extras/assets/small/thread.gif | Bin 680 -> 1023 bytes www/extras/assets/thread.gif | Bin 2501 -> 2211 bytes www/extras/tabs/tabs.js | 29 ++++++++++++++++++++++++++ 14 files changed, 59 insertions(+), 23 deletions(-) diff --git a/docs/changelog/6.x.x.txt b/docs/changelog/6.x.x.txt index b352881fe..3a6b81de3 100644 --- a/docs/changelog/6.x.x.txt +++ b/docs/changelog/6.x.x.txt @@ -4,6 +4,10 @@ the start date. - fix [ 1157202 ] users can add themselves to Admins group - fix [ 1157218 ] user cannot view it's own profile + - fix [ 1157195 ] Problem with request when saving profile + - fix [ 1158117 ] Help Index Unavailable from RWG + - fix [ 1157453 ] Error on Edit Template / Save and Cancel + - fix [ 1157434 ] [CVS 6.5]edit question controls have incorrect URL in Survey 6.4.0 diff --git a/docs/upgrades/upgrade_6.4.0-6.5.0.sql b/docs/upgrades/upgrade_6.4.0-6.5.0.sql index 040536e45..fd3098849 100644 --- a/docs/upgrades/upgrade_6.4.0-6.5.0.sql +++ b/docs/upgrades/upgrade_6.4.0-6.5.0.sql @@ -1,4 +1,4 @@ insert into webguiVersion values ('6.5.0','upgrade',unix_timestamp()); alter table asset add column isPrototype int not null default 0; alter table asset add index isPrototype_className_assetId (isPrototype,className,assetId); - +update Folder set templateId='PBtmpl0000000000000078' where templateId=''; diff --git a/lib/WebGUI/AdminConsole.pm b/lib/WebGUI/AdminConsole.pm index 7a424aabe..ab2fdc413 100644 --- a/lib/WebGUI/AdminConsole.pm +++ b/lib/WebGUI/AdminConsole.pm @@ -225,7 +225,7 @@ sub getAdminFunction { }, icon=>"help.gif", op=>"viewHelpIndex", - group=>"12" + group=>"7" }, "statistics"=>{ title=>{ diff --git a/lib/WebGUI/Asset/Post.pm b/lib/WebGUI/Asset/Post.pm index cd8b2193a..f71c39cd6 100644 --- a/lib/WebGUI/Asset/Post.pm +++ b/lib/WebGUI/Asset/Post.pm @@ -455,20 +455,22 @@ sub getThumbnailUrl { #------------------------------------------------------------------- sub getUploadControl { my $self = shift; + my $maxAttachments = $self->getThread->getParent->getValue("attachmentsPerPost"); my $uploadControl; + return undef unless ($maxAttachments); if ($self->get("storageId")) { my $i; foreach my $filename (@{$self->getStorageLocation->getFiles}) { $uploadControl .= ''.$filename.'
'; $i++; } - return $uploadControl unless ($i < $self->getThread->getParent->get("attachmentsPerPost")); + return $uploadControl unless ($i < $maxAttachments); } WebGUI::Style::setScript($session{config}{extrasURL}.'/FileUploadControl.js',{type=>"text/javascript"}); $uploadControl .= '