diff --git a/htdocs/core/class/html.formticket.class.php b/htdocs/core/class/html.formticket.class.php index c84a1f16096..a5bf6539ac3 100644 --- a/htdocs/core/class/html.formticket.class.php +++ b/htdocs/core/class/html.formticket.class.php @@ -135,7 +135,7 @@ class FormTicket $this->action = 'add'; - $this->withcompany = isModEnabled("societe"); + $this->withcompany = !getDolGlobalInt("TICKETS_NO_COMPANY_ON_FORM") && isModEnabled("societe"); $this->withfromsocid = 0; $this->withfromcontactid = 0; $this->withreadid=0; @@ -546,7 +546,7 @@ class FormTicket // Customer or supplier if ($this->withcompany) { - // altairis: force company and contact id for external user + // force company and contact id for external user if (empty($user->socid)) { // Company print ''.$langs->trans("ThirdParty").''; diff --git a/htdocs/ticket/class/ticket.class.php b/htdocs/ticket/class/ticket.class.php index beb4a4090e1..6280fdad204 100644 --- a/htdocs/ticket/class/ticket.class.php +++ b/htdocs/ticket/class/ticket.class.php @@ -2880,7 +2880,7 @@ class Ticket extends CommonObject $message .= '

'; foreach ($external_contacts as $key => $info_sendto) { - // altairis: avoid duplicate emails to external contacts + // avoid duplicate emails to external contacts if ($info_sendto['id'] == $user->contact_id) { continue; }