diff --git a/htdocs/admin/dict.php b/htdocs/admin/dict.php index d4a65b073df..c5c086482c2 100644 --- a/htdocs/admin/dict.php +++ b/htdocs/admin/dict.php @@ -928,7 +928,7 @@ if (empty($reshook)) { } if ($id == DICT_PAIEMENT && strlen(GETPOST("code")) >= 6) { // 6 char max on code for payment mode codes $ok = 0; - setEventMessages($langs->transnoentities("ErrorFieldMustHaveLessThanXChar", $langs->transnoentities("Code"), 6), null, 'errors'); + setEventMessages($langs->transnoentities("ErrorFieldMustHaveLessThanXChar", $langs->transnoentities("Code"), '6'), null, 'errors'); } // Clean some parameters