Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug: 15022 Fix regression in sending event change notifications
- Loading branch information
Showing
1 changed file
with
8 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9484e1d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code could be made simpler. There is not need to add 'private" element and non-empty check in 3 different places.
Two possible solutions:
Pass $event as parameter to _notificationPref() and add 'private" element in there
Even better - check if event is private inside of the recipients loop. This then would result in minimal changes (all the changes in this commit could then be reverted):
I can create a patch, if needed.