fix multicompany in public ticket page
This commit is contained in:
parent
3e0b2d0281
commit
9cf67c4d5f
@ -25,6 +25,12 @@ if (!defined('NOCSRFCHECK')) define('NOCSRFCHECK', '1');
|
|||||||
if (!defined('NOREQUIREMENU')) define('NOREQUIREMENU', '1');
|
if (!defined('NOREQUIREMENU')) define('NOREQUIREMENU', '1');
|
||||||
if (!defined("NOLOGIN")) define("NOLOGIN", '1'); // If this page is public (can be called outside logged session)
|
if (!defined("NOLOGIN")) define("NOLOGIN", '1'); // If this page is public (can be called outside logged session)
|
||||||
|
|
||||||
|
// For MultiCompany module.
|
||||||
|
// Do not use GETPOST here, function is not defined and define must be done before including main.inc.php
|
||||||
|
// TODO This should be useless. Because entity must be retreive from object ref and not from url.
|
||||||
|
$entity=(! empty($_GET['entity']) ? (int) $_GET['entity'] : (! empty($_POST['entity']) ? (int) $_POST['entity'] : 1));
|
||||||
|
if (is_numeric($entity)) define("DOLENTITY", $entity);
|
||||||
|
|
||||||
require '../../main.inc.php';
|
require '../../main.inc.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/ticket/class/actions_ticket.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/ticket/class/actions_ticket.class.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formticket.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formticket.class.php';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user