fixed major versioning bug
This commit is contained in:
parent
18a13f0385
commit
2b0e209f69
4 changed files with 15 additions and 3 deletions
|
|
@ -78,7 +78,7 @@ Returns 1. Purges self and all descendants.
|
|||
|
||||
sub purgeBranch {
|
||||
my $self = shift;
|
||||
my $descendants = $self->getLineage(["self","descendants"],{returnObjects=>1, invertTree=>1, statesToInclude=>['trash','trash-limbo']});
|
||||
my $descendants = $self->getLineage(["self","descendants"],{returnObjects=>1, invertTree=>1, statesToInclude=>['published', 'cliboard', 'clipboard-limbo','trash','trash-limbo']});
|
||||
foreach my $descendant (@{$descendants}) {
|
||||
$descendant->purge;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -210,7 +210,7 @@ sub purgeRevision {
|
|||
$self->purgeCache;
|
||||
$self->updateHistory("purged revision ".$self->get("revisionDate"));
|
||||
} else {
|
||||
$self->purge;
|
||||
$self->purgeBranch;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue