Bug: possible to set an empy name for an Analytic plan

This commit is contained in:
sparkyx 2021-06-14 13:15:59 +02:00
parent 1eb9607600
commit 14245bac9f

View file

@ -47,7 +47,7 @@ if ($action=="display") {
}
if ($action=="ok") {
$value=$http->post("value");
if ( $input->name=="pa_name" && trim($input->value) == "")
if ( $input->name=="pa_name" && trim($value) == "")
{
echo _("Le nom ne peut être vide"),$answer->ajax_input();
}else {