Fixed: Fatal error on admin search page and no visibility of searched service on back-office

Co-authored-by: Name <sumit201@webkul.in>
This commit is contained in:
shazar rahman
2026-09-08 17:16:00 +05:30
parent 0827abade0
commit e6e162233a
2 changed files with 17 additions and 4 deletions

View File

@@ -121,6 +121,19 @@ $(function() {
</div>
{/if}
{if isset($num_hotel_amenities) && $num_hotel_amenities}
<div class="panel">
<h3>
{if $num_hotel_amenities == 1}
{l s='1 hotel amenity'}
{else}
{l s='%d hotel amenities' sprintf=$num_hotel_amenities}
{/if}
</h3>
{$hotel_amenities}
</div>
{/if}
{if isset($num_hotel_features) && $num_hotel_features}
<div class="panel">
<h3>

View File

@@ -189,7 +189,6 @@ class AdminSearchControllerCore extends AdminController
if (!$searchType) {
$this->searchAddress();
$this->searchHotelFeatures();
$this->searchHotelAmenities();
$this->searchRefundRules();
}
@@ -435,6 +434,7 @@ class AdminSearchControllerCore extends AdminController
if ($hotelAmenities = $objHotelAmenities->searchByName($this->query, $this->context->language->id)) {
$amenities = array();
foreach ($hotelAmenities as $key => $hotelAmenity) {
$amenities[$hotelAmenity['id_amenity']]['id_amenity'] = $hotelAmenity['id_amenity'];
$amenities[$hotelAmenity['id_amenity']]['name'] = $hotelAmenity['name'];
if ($hotelAmenity['id_parent']) {
$amenities[$hotelAmenity['id_amenity']]['id'] = $hotelAmenity['id_parent'];
@@ -818,10 +818,10 @@ class AdminSearchControllerCore extends AdminController
$helper = new HelperList();
$helper->shopLinkType = '';
$helper->simple_header = true;
$helper->identifier = 'id_customer_message';
$helper->actions = array('edit');
$helper->identifier = 'id_customer_thread';
$helper->actions = array('view');
$helper->show_toolbar = false;
$helper->table = 'feature';
$helper->table = 'customer_thread';
$helper->currentIndex = $this->context->link->getAdminLink('AdminCustomerThreads', false);
$query = trim(Tools::getValue('bo_query'));