Fix: Regression
This commit is contained in:
parent
d7bb138f43
commit
a3372a9a0a
@ -52,7 +52,7 @@ $action = (GETPOST('action') ? GETPOST('action') : 'view');
|
|||||||
$confirm = GETPOST('confirm');
|
$confirm = GETPOST('confirm');
|
||||||
$socid = GETPOST('socid','int');
|
$socid = GETPOST('socid','int');
|
||||||
if ($user->societe_id) $socid=$user->societe_id;
|
if ($user->societe_id) $socid=$user->societe_id;
|
||||||
if (empty($socid) && $action = 'view') $action='create';
|
if (empty($socid) && $action == 'view') $action='create';
|
||||||
|
|
||||||
$object = new Societe($db);
|
$object = new Societe($db);
|
||||||
$extrafields = new ExtraFields($db);
|
$extrafields = new ExtraFields($db);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user