Merge pull request #1988 from Azhar-Webkul/gli-3323
Fixed: Google Hotel Connector text and room update issue in the back office
This commit is contained in:
@@ -36,12 +36,12 @@ class AdminGoogleHotelLogsController extends ModuleAdminController
|
||||
// Every QghcApiLog::TYPE_* must have an entry here, or it shows as its raw
|
||||
// value in the filter dropdown, the list column, and the detail view.
|
||||
$this->typeLabels = array(
|
||||
QghcApiLog::TYPE_ARI_FULL => 'Full Availability & Rates Update',
|
||||
QghcApiLog::TYPE_ARI_CHANGE => 'Availability & Rates Change Update',
|
||||
QghcApiLog::TYPE_GOOGLE_STATUS => 'Google Status',
|
||||
QghcApiLog::TYPE_CONNECTION => 'Connection',
|
||||
QghcApiLog::TYPE_DELETE_CONNECTION => 'Delete Connection',
|
||||
QghcApiLog::TYPE_HOTEL_LIST_FEED => 'Property Detail',
|
||||
QghcApiLog::TYPE_ARI_FULL => $this->l('Full Availability & Rates Update'),
|
||||
QghcApiLog::TYPE_ARI_CHANGE => $this->l('Availability & Rates Change Update'),
|
||||
QghcApiLog::TYPE_GOOGLE_STATUS => $this->l('Google Status'),
|
||||
QghcApiLog::TYPE_CONNECTION => $this->l('Connection'),
|
||||
QghcApiLog::TYPE_DELETE_CONNECTION => $this->l('Delete Connection'),
|
||||
QghcApiLog::TYPE_HOTEL_LIST_FEED => $this->l('Properties Details'),
|
||||
);
|
||||
|
||||
$this->bootstrap = true;
|
||||
|
||||
@@ -903,7 +903,7 @@ class QloGoogleHotelConnector extends Module
|
||||
$oldStatus = (int)$oldRoom->id_status;
|
||||
$newStatus = isset($newRoomInfo['id_status']) ? (int)$newRoomInfo['id_status'] : $oldStatus;
|
||||
|
||||
if (($newStatus !== HotelRoomInformation::STATUS_TEMPORARY_INACTIVE) && ($oldStatus !== $newStatus)) {
|
||||
if ($oldStatus !== $newStatus) {
|
||||
$objHotelRoomInfo = new HotelRoomInformation();
|
||||
$roomInfoArray = $objHotelRoomInfo->getHotelRoomInfoByProductId((int)$oldRoom->id_product);
|
||||
if (empty($roomInfoArray)) {
|
||||
|
||||
Reference in New Issue
Block a user