Forward port of isHidden work from 7.3 for Post, Event and WikiPage.
isHidden is not allowed to be 0 for those Assets. I had to reinstantiate the update method for the Event Asset, but I only put in the code to force isHidden to be forced to 1.
This commit is contained in:
parent
7abd54eb94
commit
0c45e5286e
4 changed files with 45 additions and 21 deletions
|
|
@ -90,7 +90,7 @@ sub definition {
|
|||
},
|
||||
|
||||
'relatedLinks' => {
|
||||
fieldType => "HTMLarea",
|
||||
fieldType => "HTMLArea",
|
||||
defaultValue => undef,
|
||||
},
|
||||
'location' => {
|
||||
|
|
@ -171,10 +171,6 @@ sub canEdit {
|
|||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
####################################################################
|
||||
|
||||
=head2 generateRecurringEvents ( )
|
||||
|
|
@ -1415,7 +1411,6 @@ sub processPropertiesFromFormPost {
|
|||
|
||||
### Form is verified
|
||||
# Events are always hidden from navigation
|
||||
$self->update({ isHidden => 1 });
|
||||
|
||||
if (!$self->get("groupIdEdit")) {
|
||||
my $groupIdEdit = $self->getParent->get("groupIdEventEdit")
|
||||
|
|
@ -1655,8 +1650,20 @@ sub setRelatedLinks {
|
|||
});
|
||||
}
|
||||
|
||||
####################################################################
|
||||
|
||||
=head2 update
|
||||
|
||||
Wrap update so that isHidden is always set to be a 1.
|
||||
|
||||
=cut
|
||||
|
||||
sub update {
|
||||
my $self = shift;
|
||||
my $properties = shift;
|
||||
$properties->{isHidden} = 1;
|
||||
return $self->SUPER::update($properties);
|
||||
}
|
||||
|
||||
|
||||
####################################################################
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue