Update emailcollector.class.php

This commit is contained in:
Laurent Destailleur 2025-02-02 01:21:57 +01:00 committed by GitHub
parent ae81f8bf50
commit 76ab4d7ce5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3346,7 +3346,7 @@ class EmailCollector extends CommonObject
//$tickettocreate->email_fields_no_propagate_in_actioncomm = 0;
// Add sender to context array to make sure that confirmation e-mail can be sent by trigger script
$sender_contact = New Contact($this->db);
$sender_contact = new Contact($this->db);
$sender_contact->fetch(0, null, '', $from);
if (!empty($sender_contact->id)) {
$tickettocreate->context['contactid'] = $sender_contact->id;