-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
fix(notifications): actor replacement #15623
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
base: main
Are you sure you want to change the base?
Changes from 5 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -147,6 +147,7 @@ public function getEvents() | |
| 'pendingreason_add' => __('Pending reason added'), | ||
| 'pendingreason_del' => __('Pending reason removed'), | ||
| 'pendingreason_close' => __('Pending reason auto close'), | ||
| 'del_assign_user' => __('Deletion of a user in assignees'), | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. IMHO, we should add a If we add this only for assigned users, I am pretty sure that someone will ask for the same feature for another actor type as soon as the feature will be released. |
||
| ]; | ||
|
|
||
| asort($events); | ||
|
|
@@ -884,7 +885,10 @@ public function addAdditionalTargets($event = '') | |
| return; // Do not propose more targets | ||
| } | ||
|
|
||
| if ($event == 'update') { | ||
| if ( | ||
| $event == 'update' || | ||
| $event == 'del_assign_user' | ||
| ) { | ||
| $this->addTarget( | ||
| Notification::OLD_TECH_IN_CHARGE, | ||
| __('Former technician in charge of the ticket') | ||
|
|
||
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.
I am not sure this is related to this PR.
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.
This prevents the ticket status from changing temporarily to new during the short period when there are no technicians, between deletion and addition.