Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
My room occupancy modifier is not being applied when searching and booking rooms.
I currently have two database tables called hotel_booking_occupancy_modifiers and hotel_booking_room_occupancy_modifiers
Table hotel_booking_occupancy_modifiers has two rows, both are the occupancy modifiers as submitted. All good.
Table hotel_booking_room_occupancy_modifiers is empty.
The function:
function hotel_booking_occupancy_modifier_load($id) {
return db_fetch_object(db_query('SELECT *
FROM {hotel_booking_occupancy_modifiers}
WHERE hbomid = %d', $id));
}
picks from the second, empty table.
Is this a bug or have I had some issues moving from beta4 to dev versions and messed up an upgrade along the way.
Relatively new so suspect its at my end.
Thanks, Matt
Comments
Comment #1
matt s CreditAttribution: matt s commentedApologies, I've contradicted myself in the logic above. My issue seems to be assigning the room with an occupancy modifier rule, which I assume populates table hotel_booking_room_occupancy_modifiers. Will investigate further and re-post.