mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-11 18:32:32 +01:00
Merge pull request #27080 from altairisfr/nocompany
NEW : add constant TICKETS_NO_COMPANY_ON_FORM
This commit is contained in:
@@ -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 '<tr><td class="titlefield">'.$langs->trans("ThirdParty").'</td><td>';
|
||||
|
||||
@@ -2880,7 +2880,7 @@ class Ticket extends CommonObject
|
||||
$message .= '<br><br>';
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user