PluginProbe
Fluent Support – Helpdesk & Customer Support Ticket System / 2.4.5
Fluent Support – Helpdesk & Customer Support Ticket System v2.4.5
2.4.5 2.4.0 2.3.2 2.3.1 2.3.0 2.2.1 2.2.0 trunk 1.10.0 1.10.1 1.10.2 1.10.3 1.10.4 1.10.5 1.4.0 1.4.1 1.4.2 1.4.5 1.4.6 1.4.7 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 All 69 releases
← All changes | app/Hooks/Handlers/InternalNotificationHandler.php +11 -1 2.2.1 → 2.4.5 View file →
@@ -97,10 +97,20 @@
97 97 if (!$assignedAgent || empty($assignedAgent->id)) {
98 98 return;
99 99 }
100 100
101 + if ((int) $ticket->agent_id !== (int) $assignedAgent->id) {
102 + return;
103 + }
104 +
105 + $accessibleAgents = $this->filterTicketAccessibleAgents([$assignedAgent], $ticket);
106 +
107 + if (!$accessibleAgents) {
108 + return;
109 + }
110 +
101 111 $assignerId = (!empty($assigner) && !empty($assigner->id)) ? (int) $assigner->id : null;
102 - $recipientIds = (new RecipientResolver())->extractRecipientPersonIds([$assignedAgent]);
112 + $recipientIds = (new RecipientResolver())->extractRecipientPersonIds($accessibleAgents);
103 113
104 114 if (!$recipientIds) {
105 115 return;
106 116 }