- fix: Attachment label but no field in CS posts

This commit is contained in:
JT Smith 2006-06-22 20:15:47 +00:00
parent d5204a1fa9
commit 23e31ab52a
2 changed files with 4 additions and 3 deletions

View file

@ -14,7 +14,7 @@
- fix: packages don't take on new pages style when deployed
- fix: Payment in commerce system (Part II)
- fix: viewIndividualSurvey shows "Answer" lines in Survey mode
- fix: Attachment label but no field in CS posts
6.99.4
- fix: better checking of selected template type

View file

@ -1079,12 +1079,13 @@ sub www_edit {
$var{'form.preview'} = WebGUI::Form::submit($self->session, {
value=>$i18n->get("preview","Asset_Collaboration")
});
my $numberOfAttachments = $self->getThread->getParent->getValue("attachmentsPerPost");
$var{'attachment.form'} = WebGUI::Form::image($self->session, {
name=>"storageId",
value=>$self->get("storageId"),
maxAttachments=>$self->getThread->getParent->getValue("attachmentsPerPost"),
maxAttachments=>$numberOfAttachments,
deleteFileUrl=>$self->getUrl("func=deleteFile;filename=")
});
}) if ($numberOfAttachments);
$var{'contentType.form'} = WebGUI::Form::contentType($self->session, {
name=>'contentType',
value=>$self->getValue("contentType") || "mixed"