Skip to content

Ticket: Fix subscribe ticket creator and skip unsubscribed notifications - refs BT#22281 #6000

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 24, 2024

Conversation

christianbeeznest
Copy link
Contributor

No description provided.

@@ -1394,7 +1396,11 @@ public static function sendNotification($ticketId, $title, $message, $onlyToUser
if (!empty($onlyToUserId) && $currentUserId != $onlyToUserId) {
$recipients[$onlyToUserId] = $onlyToUserId;
} else {
if ($requestUserInfo && $currentUserId != $requestUserInfo['id']) {
if (

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expected 0 spaces after opening bracket; newline found

@@ -1405,7 +1411,13 @@ public static function sendNotification($ticketId, $title, $message, $onlyToUser
$followers = self::getFollowers($ticketId);
/* @var User $follower */
foreach ($followers as $follower) {
if ($currentUserId != $follower->getId()) {
if (

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expected 0 spaces after opening bracket; newline found

Copy link

Code Climate has analyzed commit b95fc06 and detected 8 issues on this pull request.

Here's the issue category breakdown:

Category Count
Style 6
Clarity 2

View more on Code Climate.

@NicoDucou NicoDucou merged commit 85547e2 into chamilo:master Dec 24, 2024
1 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants