Bug #38019
Notification onCreate is not working!
| Status: | New | Start date: | 2012-06-13 | |
|---|---|---|---|---|
| Priority: | Should have | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | - | Spent time: | - | |
| Target version: | 1.6 | |||
| Votes: | 0 |
Description
Hi,
I am using Typo3 4.6.7 and the latest svn repo of Typo3v4 base cal.
If event records are updated or deleted all subscribers (subscribed to event or category) are notified.
But those mail addresses which are subscribed to a category are not informed once a new event is created.
Technical stuff:
It depends on the hook function processDatamap_afterDatabaseOperations($status, $table, $id, &$fieldArray, &$tcemain) which is defined in class.tx_cal_tcemain_processdatamap.php. This function is also called twice ??!
This function wants to notify subscribers if a new event is created (line 237 ff)
if($status=='new'){
$notificationService->notify($event);
}
This will cause that this function notify is executed.
class.tx_cal_notification_view.php at line 227 ff
function notify(&$newEventDataArray,$forceDeletionMode = 0){
$event = $this->modelObj->findEvent($newEventDataArray['uid'],'tx_cal_phpicalendar', $this->conf['pidList'], true, true, false, true, true);
But once it comes to line 283 it will not return some correctly set categories
foreach($event->getCategories() as $category){
Might this be a problem of the hook afterDatabaseOperation and that the categories are not yet set?
Or is the function findEvent not returning a fully event object?
Any other suggestion?
History
Updated by Thomas Kowtsch 8 months ago
- Target version set to 1.6