From 14245bac9f1b8eee6ddb00a2183ec2559fe98d57 Mon Sep 17 00:00:00 2001 From: sparkyx Date: Mon, 14 Jun 2021 13:15:59 +0200 Subject: [PATCH] Bug: possible to set an empy name for an Analytic plan --- include/ajax/ajax_anc_plan.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ajax/ajax_anc_plan.php b/include/ajax/ajax_anc_plan.php index d839be06b..0ba65a13b 100644 --- a/include/ajax/ajax_anc_plan.php +++ b/include/ajax/ajax_anc_plan.php @@ -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 {