Merge pull request #12504 from hregis/10.0_mc

FIX compatibility with Multicompany
This commit is contained in:
Laurent Destailleur 2019-11-26 09:22:20 +01:00 committed by GitHub
commit c9cc503036
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 = '';