Normalized signature of Asset::duplicate. This involved going through
existing overrides and callers for that method and making sure they followed the correct signature. Various related cleanups. This should fix those bugs with collaboration systems refusing to be copied or deployed as packages.
This commit is contained in:
parent
3f45819b49
commit
c438d55310
20 changed files with 123 additions and 153 deletions
|
|
@ -81,7 +81,9 @@ sub addRevision {
|
|||
isHidden => 1,
|
||||
dateUpdated=>$now,
|
||||
});
|
||||
|
||||
$newSelf->getThread->unmarkRead;
|
||||
|
||||
return $newSelf;
|
||||
}
|
||||
|
||||
|
|
@ -498,7 +500,7 @@ sub getTemplateVars {
|
|||
#-------------------------------------------------------------------
|
||||
sub getThread {
|
||||
my $self = shift;
|
||||
unless (exists $self->{_thread}) {
|
||||
unless (defined $self->{_thread}) {
|
||||
$self->{_thread} = WebGUI::Asset::Post::Thread->new($self->session, $self->get("threadId"));
|
||||
}
|
||||
return $self->{_thread};
|
||||
|
|
@ -858,6 +860,14 @@ sub rate {
|
|||
}
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub rethreadUnder {
|
||||
my $self = shift;
|
||||
my $thread = shift;
|
||||
$self->update({threadId => $thread->getId});
|
||||
delete $self->{_thread};
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
# allows us to let the cs post use it's own workflow approval process
|
||||
sub requestCommit {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue