Fix undefined variable issue at Hotel Interior Block settings page at back office

This commit is contained in:
Abhishek Kumar
2022-09-30 20:52:39 +05:30
parent 31fcd01ef9
commit e76ffe2f7b

View File

@@ -70,7 +70,6 @@ class AdminAboutHotelBlockSettingController extends ModuleAdminController
),
);
$this->informations[] = $this->l('For better view, upload hotel interior image in multiple of 3.');
$this->addRowAction('edit');
$this->addRowAction('delete');
@@ -137,6 +136,7 @@ class AdminAboutHotelBlockSettingController extends ModuleAdminController
parent::initContent();
// to customize the view as per our requirements
if ($this->display != 'add' && $this->display != 'edit') {
$this->informations[] = $this->l('Keep interior images in a multiple of 3 for the best view.');
$this->content = $this->renderOptions();
$this->content .= $this->renderList();
$this->context->smarty->assign('content', $this->content);
@@ -165,7 +165,7 @@ class AdminAboutHotelBlockSettingController extends ModuleAdminController
public function renderForm()
{
$imageUrl = $imageSize = false;
$imgUrl = $imageSize = $imgExist = $image = false;
if ($this->display == 'edit') {
$idHtlInterior = Tools::getValue('id_interior_image');
@@ -190,6 +190,7 @@ class AdminAboutHotelBlockSettingController extends ModuleAdminController
}
}
$this->fields_form = array(
'legend' => array(
'title' => $this->l('Add New Hotel Interior Image'),