various bug fixes
This commit is contained in:
parent
439d3fa4b3
commit
dc4fb07c1b
4 changed files with 29 additions and 8 deletions
|
|
@ -267,7 +267,7 @@ sub getAdminFunction {
|
|||
},
|
||||
icon=>"statistics.gif",
|
||||
op=>"viewStatistics",
|
||||
group=>"12"
|
||||
group=>"3"
|
||||
},
|
||||
"contentProfiling"=>{
|
||||
title=>{
|
||||
|
|
@ -285,7 +285,7 @@ sub getAdminFunction {
|
|||
},
|
||||
icon=>"contentFilters.gif",
|
||||
op=>"listReplacements",
|
||||
group=>"4"
|
||||
group=>"3"
|
||||
},
|
||||
"userProfiling"=>{
|
||||
title=>{
|
||||
|
|
|
|||
|
|
@ -147,7 +147,7 @@ sub definition {
|
|||
className=>'WebGUI::Asset::Post',
|
||||
properties=>{
|
||||
storageId => {
|
||||
fieldType=>"file",
|
||||
fieldType=>"image",
|
||||
defaultValue=>undef
|
||||
},
|
||||
threadId => {
|
||||
|
|
@ -657,10 +657,6 @@ sub processPropertiesFromFormPost {
|
|||
}
|
||||
}
|
||||
$self->getThread->subscribe if ($self->session->form->process("subscribe"));
|
||||
delete $self->{_storageLocation};
|
||||
my $storage = $self->getStorageLocation;
|
||||
my $attachmentLimit = $self->getThread->getParent->get("attachmentsPerPost");
|
||||
$storage->addFileFromFormPost("file", $attachmentLimit) if $attachmentLimit;
|
||||
$self->postProcess;
|
||||
$self->requestCommit;
|
||||
}
|
||||
|
|
@ -1040,7 +1036,7 @@ sub www_edit {
|
|||
$var{'form.preview'} = WebGUI::Form::submit($self->session, {
|
||||
value=>$i18n->get("preview","Asset_Collaboration")
|
||||
});
|
||||
$var{'attachment.form'} = WebGUI::Form::file($self->session, {
|
||||
$var{'attachment.form'} = WebGUI::Form::image($self->session, {
|
||||
value=>$self->get("storageId"),
|
||||
maxAttachments=>$self->getThread->getParent->getValue("attachmentsPerPost"),
|
||||
deleteFileUrl=>$self->getUrl("func=deleteFile;filename=")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue