Fix ticket when module societe not enabled

This commit is contained in:
Maxime Kohlhaas
2021-05-16 18:48:18 +02:00
parent a9ddf2a5ad
commit d3ff549b21
3 changed files with 7 additions and 4 deletions

View File

@@ -103,11 +103,13 @@ class FormTicket
*/
public function __construct($db)
{
global $conf;
$this->db = $db;
$this->action = 'add';
$this->withcompany = 1;
$this->withcompany = $conf->societe->enabled ? 1 : 0;
$this->withfromsocid = 0;
$this->withfromcontactid = 0;
//$this->withthreadid=0;