From e76ffe2f7bd71d457292372da91eb6f85b7965a3 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Fri, 30 Sep 2022 20:52:39 +0530 Subject: [PATCH] Fix undefined variable issue at Hotel Interior Block settings page at back office --- .../admin/AdminAboutHotelBlockSettingController.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/wkabouthotelblock/controllers/admin/AdminAboutHotelBlockSettingController.php b/modules/wkabouthotelblock/controllers/admin/AdminAboutHotelBlockSettingController.php index 552fef51e..187dedcf3 100644 --- a/modules/wkabouthotelblock/controllers/admin/AdminAboutHotelBlockSettingController.php +++ b/modules/wkabouthotelblock/controllers/admin/AdminAboutHotelBlockSettingController.php @@ -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'),