Fix: bad test
This commit is contained in:
parent
8e51a4683f
commit
25f49b6a24
@ -52,7 +52,7 @@ $action = (GETPOST('action') ? GETPOST('action') : 'view');
|
||||
$confirm = GETPOST('confirm');
|
||||
$socid = GETPOST('socid','int');
|
||||
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);
|
||||
$extrafields = new ExtraFields($db);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user