FIX compatibility with Multicompany

This commit is contained in:
Regis Houssin 2019-11-25 10:03:35 +01:00
parent c7aaed1264
commit 1a43b58f8a

View File

@ -53,7 +53,6 @@ $object = new Ticket($db);
$extrafields = new ExtraFields($db);
$extralabels = $extrafields->fetch_name_optionals_label($object->table_element);
/*
* Actions
*/
@ -359,7 +358,7 @@ if ($action != "infos_success") {
$formticket->withfile = 2;
$formticket->action = 'create_ticket';
$formticket->param = array('returnurl' => $_SERVER['PHP_SELF']);
$formticket->param = array('returnurl' => $_SERVER['PHP_SELF'].($conf->entity > 1 ? '?entity='.$conf->entity : ''));
if (empty($defaultref)) {
$defaultref = '';