From d76081d487621ba4b929e452cfb35d2cfeb1a479 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Garci=CC=81a=20de=20La=20Fuente?= Date: Sun, 5 Jan 2014 06:42:08 +0100 Subject: [PATCH] Improved feedback to the user when he did not enter name in his vote --- htdocs/opensurvey/public/studs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/opensurvey/public/studs.php b/htdocs/opensurvey/public/studs.php index df0ae20394a..1cdcefd6c2b 100644 --- a/htdocs/opensurvey/public/studs.php +++ b/htdocs/opensurvey/public/studs.php @@ -146,7 +146,7 @@ if (isset($_POST["boutonp"]) || isset($_POST["boutonp_x"])) } else { - $err |= NAME_EMPTY; + setEventMessage($langs->trans("ErrorFieldRequired",$langs->transnoentitiesnoconv("Name")), 'errors'); } }