diff --git a/htdocs/adherents/fiche.php b/htdocs/adherents/fiche.php index 7fe6e2b4885..cd3c08c0853 100644 --- a/htdocs/adherents/fiche.php +++ b/htdocs/adherents/fiche.php @@ -173,7 +173,7 @@ if ($_POST["action"] == 'confirm_create_thirdparty' && $_POST["confirm"] == 'yes { // Creation user $company = new Societe($db); - $result=$company->create_from_member($adh,$_POST["name"]); + $result=$company->create_from_member($adh,$_POST["companyname"]); if ($result < 0) {