WikiPage uses an role to force hiddenness now. No need to subclass addRevision.
This commit is contained in:
parent
c2fac1e865
commit
4c3a26b023
1 changed files with 0 additions and 18 deletions
|
|
@ -74,24 +74,6 @@ sub addChild {
|
|||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 addRevision ( )
|
||||
|
||||
Override the default method in order to deal with attachments.
|
||||
|
||||
=cut
|
||||
|
||||
sub addRevision {
|
||||
my $self = shift;
|
||||
my $newSelf = $self->next::method(@_);
|
||||
my $now = time();
|
||||
$newSelf->update({
|
||||
isHidden => 1,
|
||||
});
|
||||
return $newSelf;
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 canAdd ($session)
|
||||
|
||||
This functions as a class or an object method. It sets the subclassGroupId to 7
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue