From ef7ff5107e395f0b43371c8d9d7a317c03378571 Mon Sep 17 00:00:00 2001 From: vAugagneur Date: Mon, 11 Jun 2012 07:33:56 +0000 Subject: [PATCH] [-] CLASSES : fixed bug #PSCFV-2769 - Accolade missing in AdminTab.php --- classes/AdminTab.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/classes/AdminTab.php b/classes/AdminTab.php index 3e010fd2b..dc6833724 100644 --- a/classes/AdminTab.php +++ b/classes/AdminTab.php @@ -474,10 +474,11 @@ abstract class AdminTabCore /* Checking for maximum multilingual fields size */ foreach ($rules['sizeLang'] as $fieldLang => $maxLength) foreach ($languages as $language) + { if (Tools::getValue($fieldLang.'_'.$language['id_lang']) !== false && Tools::strlen(Tools::getValue($fieldLang.'_'.$language['id_lang'])) > $maxLength) $this->_errors[] = sprintf(Tools::displayError('field %1$s is too long. (%2$d chars max, html chars including)'), call_user_func(array($className, 'displayFieldName'), $fieldLang, $className), $maxLength); $this->_errors[] = $this->l('the field').' '.call_user_func(array($className, 'displayFieldName'), $fieldLang, $className).' ('.$language['name'].') '.$this->l('is too long').' ('.$maxLength.' '.$this->l('chars max, html chars including').')'; - + } /* Overload this method for custom checking */ $this->_childValidation();