From ed2b359dae523fc62c5066e06e44d0911017c0e6 Mon Sep 17 00:00:00 2001 From: jfefe Date: Thu, 28 Mar 2013 06:48:21 +0100 Subject: [PATCH] Bad parameter when calling setEventMessage function --- htdocs/core/admin_extrafields.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/core/admin_extrafields.inc.php b/htdocs/core/admin_extrafields.inc.php index 43b04a83a9a..ea4f26c8509 100644 --- a/htdocs/core/admin_extrafields.inc.php +++ b/htdocs/core/admin_extrafields.inc.php @@ -92,7 +92,7 @@ if ($action == 'add') { $error++; $mesg=$extrafields->error; - setEventMessage($mesg,'error'); + setEventMessage($mesg,'errors'); } } else @@ -100,7 +100,7 @@ if ($action == 'add') $error++; $langs->load("errors"); $mesg=$langs->trans("ErrorFieldCanNotContainSpecialCharacters",$langs->transnoentities("AttributeCode")); - setEventMessage($mesg,'error'); + setEventMessage($mesg,'errors'); $action = 'create'; } }