Skip to content
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

Fix(Notification): better fix for double notification #272

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

stonebuzz
Copy link
Contributor

Checklist before requesting a review

Please delete options that are not relevant.

  • I have performed a self-review of my code.
  • I have added tests (when available) that prove my fix is effective or that my feature works.
  • This change requires a documentation update.

Description

  • It fixes !35612

Better fix for https://github.com/pluginsGLPI/escalade/pull/253/files

Refactor code

Add group_Ticket instead of update Ticket (and get more than one notification

Screenshots (if appropriate):

@stonebuzz stonebuzz force-pushed the fix_notification branch 2 times, most recently from 441dde5 to 4c315cc Compare December 26, 2024 10:39
@@ -69,29 +69,33 @@
if ($_SESSION['plugins']['escalade']['config']['ticket_last_status'] != -1) {
$_form_object['status'] = $_SESSION['plugins']['escalade']['config']['ticket_last_status'];
}
$updates_ticket = new Ticket();
if (
Copy link
Contributor

Choose a reason for hiding this comment

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

Without the if, the task will be created even if adding the group fails?

Copy link
Contributor

@Rom1-B Rom1-B left a comment

Choose a reason for hiding this comment

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

Seems OK

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