Removed: Non required code from the AdminHotelFeatureController which caused the errors in the postProcess

This commit is contained in:
vishalsingh.qlo325
2024-05-07 10:06:14 +05:30
parent 8dcfc9e892
commit b5d7e345e0

View File

@@ -150,18 +150,6 @@ class AdminHotelFeaturesController extends ModuleAdminController
$this->errors[] = $this->l('Please add atleast one Child features.');
}
foreach ($languages as $lang) {
if (!trim(Tools::getValue('parent_ftr_name_'.$lang['id_lang']))) {
$objHotelFeatures->name[$lang['id_lang']] = Tools::getValue(
'parent_ftr_name_'.$defaultLangId
);
} else {
$objHotelFeatures->name[$lang['id_lang']] = Tools::getValue(
'parent_ftr_name_'.$lang['id_lang']
);
}
}
if (!count($this->errors)) {
if (isset($parentFeatureId) && $parentFeatureId) {
$objHotelFeatures = new HotelFeatures($parentFeatureId);