Details
-
Bug
-
Resolution: Obsolete
-
Medium
-
None
-
4.0.2, 4.1.0alpha2
-
None
Description
Notification emails are send for modifications done before the notification subscription (it also happens on ez.no forum for instance).
In addition the beginning of eZNotificationEventFilter::process() is weird. eZNotificationEventFilter::availableHandlers() returns an array that can only contain PHP Object but a test is done on false (boolean) and if the test is true, an error message is fired but this message already fired before in eZNotificationEventFilter::loadHandler() and it contains an undefined variable.
Steps to reproduce
With a default eZ Publish install :
1. Edit an object and make a modification
2. Subscribe to notification on this object
3. Run a cronjob part that executes notification.php cronjob script
You will receive a notification email for your modification done before you're subscription.