diff --git a/htdocs/adherents/type.php b/htdocs/adherents/type.php index e7389281104..9cf9cb165b3 100644 --- a/htdocs/adherents/type.php +++ b/htdocs/adherents/type.php @@ -64,7 +64,8 @@ if ($_POST["action"] == 'add') } else { - $mesg=$this->langs("ErrorFieldRequired",$langs->trans("Label")); + $mesg=$langs->trans("ErrorFieldRequired",$langs->transnoentities("Label")); + $_GET["action"] = 'create'; } } } @@ -97,11 +98,11 @@ if ($_GET["action"] == 'delete') Header("Location: liste.php"); exit; } + if ($_GET["action"] == 'commentaire') { $don = new Don($db); $don->set_commentaire($rowid,$_POST["commentaire"]); - $action = "edit"; } @@ -136,8 +137,10 @@ if (! $rowid && $_GET["action"] != 'create' && $_GET["action"] != 'edit') print '