- fix: notifications from postings
- Refactored the autocommit system to fix the notifications bug above.
This commit is contained in:
parent
2c7f49be9a
commit
02622ea55c
6 changed files with 49 additions and 5 deletions
|
|
@ -230,7 +230,9 @@ sub generateRecurringEvents
|
|||
$properties->{endDate} = $dt->clone->add(days => $duration_days)->strftime('%F');
|
||||
|
||||
|
||||
$parent->addChild($properties);
|
||||
my $newEvent = $parent->addChild($properties);
|
||||
$newEvent->requestAutoCommit;
|
||||
|
||||
}
|
||||
|
||||
return 1;
|
||||
|
|
@ -1497,9 +1499,11 @@ sub processPropertiesFromFormPost
|
|||
$properties->{endDate} = $event->get("endDate");
|
||||
|
||||
$event->addRevision($self->get);
|
||||
$event->requestAutoCommit;
|
||||
}
|
||||
}
|
||||
}
|
||||
$self->requestAutoCommit;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -795,6 +795,7 @@ sub postProcess {
|
|||
$size += $storage->getFileSize($file);
|
||||
}
|
||||
$self->setSize($size);
|
||||
$self->requestAutoCommit;
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -262,6 +262,7 @@ sub processPropertiesFromFormPost {
|
|||
}
|
||||
|
||||
$self->setSize($size);
|
||||
$self->requestAutoCommit;
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue