- fix: notifications from postings

- Refactored the autocommit system to fix the notifications bug above.
This commit is contained in:
JT Smith 2007-01-17 21:34:49 +00:00
parent 2c7f49be9a
commit 02622ea55c
6 changed files with 49 additions and 5 deletions

View file

@ -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;
}

View file

@ -795,6 +795,7 @@ sub postProcess {
$size += $storage->getFileSize($file);
}
$self->setSize($size);
$self->requestAutoCommit;
}
#-------------------------------------------------------------------

View file

@ -262,6 +262,7 @@ sub processPropertiesFromFormPost {
}
$self->setSize($size);
$self->requestAutoCommit;
}
#-------------------------------------------------------------------