diff --git a/lib/WebGUI/Asset/WikiPage.pm b/lib/WebGUI/Asset/WikiPage.pm index 3e5ff76fa..6397f4638 100644 --- a/lib/WebGUI/Asset/WikiPage.pm +++ b/lib/WebGUI/Asset/WikiPage.pm @@ -55,7 +55,15 @@ property isFeatured => ( noFormPost => 1, ); -use Tie::IxHash; +around isHidden => sub { + my $orig = shift; + my $self = shift; + if (@_ > 0) { + $_[0] = 1; + } + $self->$orig(@_); +}; + use WebGUI::International; use WebGUI::Utility; @@ -463,21 +471,6 @@ sub scrubContent { #------------------------------------------------------------------- -=head2 update - -Wrap update to force isHidden to be on, all the time. - -=cut - -sub update { - my $self = shift; - my $properties = shift; - $properties->{isHidden} = 1; - return $self->next::method($properties); -} - -#------------------------------------------------------------------- - =head2 validParent Make sure that the current session asset is a WikiMaster for pasting and adding checks.