Ensure $id is available fot object fetching (#31098)
This commit is contained in:
parent
b32225283d
commit
3d3cdc51f2
1 changed files with 1 additions and 1 deletions
|
|
@ -60,6 +60,7 @@ if (isModEnabled('incoterm')) {
|
|||
$action = GETPOST('action', 'aZ09');
|
||||
$confirm = GETPOST('confirm', 'alpha');
|
||||
$backtopage = GETPOST('backtopage', 'alpha');
|
||||
$id = GETPOSTINT('id');
|
||||
|
||||
|
||||
// Initialize a technical object to manage hooks of page. Note that conf->hooks_modules contains an array of hook context
|
||||
|
|
@ -81,7 +82,6 @@ include DOL_DOCUMENT_ROOT.'/core/actions_fetchobject.inc.php'; // Must be 'inclu
|
|||
$error = 0;
|
||||
|
||||
// Security check
|
||||
$id = GETPOSTINT('id');
|
||||
if ($user->socid) {
|
||||
$socid = $user->socid;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue