fixed a bug that caused threadId's to be empty in new posts
This commit is contained in:
parent
9475a99bbf
commit
aff2236d69
4 changed files with 6 additions and 3 deletions
|
|
@ -2,6 +2,7 @@
|
|||
- Bugfixes on dashboard to fix template errors.
|
||||
- Bug fixes to make WebGUI work with the WRE demo system.
|
||||
- Fixed a typo in the activities in the config file.
|
||||
- fixed a bug that caused threadId's to be empty in new posts
|
||||
|
||||
6.99.0
|
||||
- Added a workflow system.
|
||||
|
|
|
|||
|
|
@ -323,7 +323,7 @@
|
|||
"WebGUI::VersionTag" : ["WebGUI::Workflow::Activity::CommitVersionTag", "WebGUI::Workflow::Activity::RollbackVersionTag",
|
||||
"WebGUI::Workflow::Activity::TrashVersionTag", "WebGUI::Workflow::Activity::CreateCronJob",
|
||||
"WebGUI::Workflow::Activity::UnlockVersionTag", "WebGUI::Workflow::Activity::NotifyAboutVersionTag",
|
||||
"WebGUI::Workflow::Activity::RequestApprovalForVersionTag", "WebGUI::Workflow::Activity::ExportVersionTagAsHtml"]
|
||||
"WebGUI::Workflow::Activity::RequestApprovalForVersionTag", "WebGUI::Workflow::Activity::ExportVersionTagToHtml"]
|
||||
},
|
||||
|
||||
# Enter the graphing plugins that you want to enable for your site.
|
||||
|
|
|
|||
|
|
@ -1533,7 +1533,9 @@ sub processPropertiesFromFormPost {
|
|||
foreach my $definition (@{$self->definition($self->session)}) {
|
||||
foreach my $property (keys %{$definition->{properties}}) {
|
||||
if ($definition->{properties}{$property}{noFormPost}) {
|
||||
$data{$property} = $definition->{properties}{$property}{defaultValue} if $self->session->form->process("assetId") eq "new";
|
||||
if ($self->session->form->process("assetId") eq "new" && $self->get($property) eq "") {
|
||||
$data{$property} = $definition->{properties}{$property}{defaultValue};
|
||||
}
|
||||
next;
|
||||
}
|
||||
my %params = %{$definition->{properties}{$property}};
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ sub addRevision {
|
|||
my $now = time();
|
||||
if ($threadId eq "") { # new post
|
||||
if ($newSelf->getParent->get("className") eq "WebGUI::Asset::Wobject::Collaboration") {
|
||||
$newSelf->update({threadId=>$newSelf->getId}, dateSubmitted=>$now);
|
||||
$newSelf->update({threadId=>$newSelf->getId, dateSubmitted=>$now});
|
||||
} else {
|
||||
$newSelf->update({threadId=>$newSelf->getParent->get("threadId"), dateSubmitted=>$now});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue