Moose override commit in Thread and CS.
This commit is contained in:
parent
45b6f45e4b
commit
794b26d325
2 changed files with 10 additions and 10 deletions
|
|
@ -172,13 +172,13 @@ Extends the base method to increment the number of threads in the parent CS.
|
|||
|
||||
=cut
|
||||
|
||||
sub commit {
|
||||
my $self = shift;
|
||||
$self->SUPER::commit;
|
||||
if ($self->isNew) {
|
||||
$self->getParent->incrementThreads($self->revisionDate,$self->getId);
|
||||
}
|
||||
}
|
||||
override commit => sub {
|
||||
my $self = shift;
|
||||
super();
|
||||
if ($self->isNew) {
|
||||
$self->getParent->incrementThreads($self->revisionDate,$self->getId);
|
||||
}
|
||||
};
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
# Override duplicateBranch here so that new posts get their threadId set correctly.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue