fix: Events are created with no group information
This commit is contained in:
parent
11b308df81
commit
6c8e840fe6
3 changed files with 43 additions and 1 deletions
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue