diff --git a/htdocs/compta/sociales/charges.php b/htdocs/compta/sociales/charges.php index 4c5abb8d1e4..3d6e3fdbf24 100644 --- a/htdocs/compta/sociales/charges.php +++ b/htdocs/compta/sociales/charges.php @@ -112,7 +112,7 @@ if ($_POST["action"] == 'add' && $user->rights->tax->charges->creer) { $chargesociales=new ChargeSociales($db); - $chargesociales->type=$_POST["type"]; + $chargesociales->type=$_POST["actioncode"]; $chargesociales->lib=$_POST["label"]; $chargesociales->date_ech=$dateech; $chargesociales->periode=$_POST["period"];