diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php index 6f2b905de0d..82bb0075fe9 100644 --- a/htdocs/commande/fiche.php +++ b/htdocs/commande/fiche.php @@ -54,7 +54,7 @@ $comid = GETPOST("id"); if (empty($comid)) $comid=GETPOST("orderid"); // Security check -$socid=0; +$socid=GETPOST('socid'); if ($user->societe_id) $socid=$user->societe_id; $result=restrictedArea($user,'commande',$comid,'');