Set isHidden=1 in GalleryFile by default, to prevent some navigations from having

problems.
Update existing GalleryFile assets to set isHidden=1.
This commit is contained in:
Colin Kuskie 2008-12-24 23:13:11 +00:00
parent e66e2d04cc
commit 51d1955671
3 changed files with 31 additions and 0 deletions

View file

@ -739,6 +739,21 @@ sub setComment {
);
}
####################################################################
=head2 update
Wrap update so that isHidden is always set to be a 1.
=cut
sub update {
my $self = shift;
my $properties = shift;
return $self->SUPER::update({%$properties, isHidden => 1});
}
#----------------------------------------------------------------------------
=head2 view ( )