Merge pull request #1796 from varunkewlani322/gli-3065-clean
Fixed: added validation for child features in hotel
This commit is contained in:
@@ -141,13 +141,13 @@ class AdminHotelFeaturesController extends ModuleAdminController
|
||||
$this->errors[] = $this->l('Child features name is required at least in ').
|
||||
$objDefaultLanguage['name'];
|
||||
} elseif (!Validate::isGenericName($childftr)) {
|
||||
$this->errors[] = $this->l('Child features name is invalid : ').$childftr;
|
||||
$this->errors[] = $this->l('Child features name is invalid : ').Tools::safeOutput($childftr);
|
||||
} else {
|
||||
foreach ($languages as $lang) {
|
||||
if ($childFtrLang = Tools::getValue('child_features_'.$lang['id_lang'])) {
|
||||
if (!Validate::isGenericName($childFtrLang[$kChild])) {
|
||||
$this->errors[] = $this->l('Invalid child feature name in ').$lang['name'].
|
||||
' : '.$childFtrLang[$kChild];
|
||||
' : '.Tools::safeOutput($childFtrLang[$kChild]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user