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:
parent
e66e2d04cc
commit
51d1955671
3 changed files with 31 additions and 0 deletions
|
|
@ -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 ( )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue