diff --git a/htdocs/expedition/fiche.php b/htdocs/expedition/fiche.php index 514994e921f..b922e59f781 100644 --- a/htdocs/expedition/fiche.php +++ b/htdocs/expedition/fiche.php @@ -613,7 +613,7 @@ else */ $sql = "SELECT ".$db->pdate("a.datea")." as da, a.note"; $sql .= " FROM ".MAIN_DB_PREFIX."actioncomm as a"; - $sql .= " WHERE a.fk_soc = ".$commande->socidp." AND a.fk_action in (9,10)"; + $sql .= " WHERE a.fk_soc = ".$commande->soc_id." AND a.fk_action in (9,10)"; $sql .= " AND a.fk_commande = ".$expedition->id; $resql = $db->query($sql);