fix: Events are created with no group information

This commit is contained in:
Doug Bell 2007-02-16 19:37:39 +00:00
parent 11b308df81
commit 6c8e840fe6
3 changed files with 43 additions and 1 deletions

View file

@ -1407,10 +1407,26 @@ sub processPropertiesFromFormPost {
}
### Form is verified
### Form is verified, fix properties
# Events are always hidden from navigation
$self->update({ isHidden => 1 });
# If there is no security information, grab it from the parent
if (!$self->get("groupIdView")) {
$self->update({
groupIdView => $self->getParent->get("groupIdView"),
});
}
if (!$self->get("groupIdEdit")) {
my $groupIdEdit = $self->getParent->get("groupIdEventEdit")
|| $self->getParent->get("groupIdEdit")
;
$self->update({
groupIdEdit => $groupIdEdit,
});
}
# Fix times according to input (allday, timezone)
if ($form->param("allday")) {
$self->update({