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 .= '