From 50f6670a1a5952e74490c75980bd0a8e5f2f08cc Mon Sep 17 00:00:00 2001 From: Kaleb Murphy Date: Mon, 15 Sep 2008 19:00:30 +0000 Subject: [PATCH] Article now only allows two files to be uploaded. --- docs/changelog/7.x.x.txt | 1 + lib/WebGUI/Asset/Wobject/Article.pm | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index ee9f574f7..42f7093a4 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -42,6 +42,7 @@ - It was possible to run multiple singleton workflows at the same time. - fixed: WebGUI Password Recovery email subject hard-coded - rfe: Add url to list of attributes tracked in assetHistory + - fixed: Article now only allows 2 files to be uploaded 7.5.22 - fixed: Layout template now gets prepared correctly diff --git a/lib/WebGUI/Asset/Wobject/Article.pm b/lib/WebGUI/Asset/Wobject/Article.pm index 04e0c1996..38d349468 100644 --- a/lib/WebGUI/Asset/Wobject/Article.pm +++ b/lib/WebGUI/Asset/Wobject/Article.pm @@ -124,7 +124,7 @@ sub definition { tab=>"properties", fieldType=>"image", deleteFileUrl=>$session->url->page("func=deleteFile;filename="), - maxAttachments=>25, + maxAttachments=>2, defaultValue=>undef, label=>$i18n->get("attachments"), hoverHelp=>$i18n->get("attachments help") @@ -306,7 +306,7 @@ sub view { }); } } - $var{description} = $self->get("description"); + $var{description} = $self->get("description"); $var{"new.template"} = $self->getUrl("func=view").";overrideTemplateId="; $var{"description.full"} = $var{description}; $var{"description.full"} =~ s/\^\-\;//g;