diff --git a/modules/hotelreservationsystem/classes/HotelBranchInformation.php b/modules/hotelreservationsystem/classes/HotelBranchInformation.php index e91aa93be..570edf520 100644 --- a/modules/hotelreservationsystem/classes/HotelBranchInformation.php +++ b/modules/hotelreservationsystem/classes/HotelBranchInformation.php @@ -1221,6 +1221,8 @@ public function setWsHotelCategories() $objCategory->link_rewrite = $linkRewriteArray; $objCategory->id_parent = $catCity; $objCategory->save(); + $this->id_category = $objCategory->id; + $this->save(); Category::regenerateEntireNtree(); } else if ($catHotel = $this->addCategory( $hotelCatName, $catCity, $groupIds, 1, $this->id, $linkRewriteArray