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.
Currently the hotel_booking_auto_availability function doesn't appear to check if availability for a room on each date has already been set?
If I'm right this seems undesirable because 1) it would needlessly overwrite availability already recorded by previous cron jobs and 2) if auto-availability is set to 3 months and an admin sets availability for a room in the more distant future (for example, setting christmas availability to 0), this availability would then be overwritten once the cron task kicks in.
Comments
Comment #1
lightsurge CreditAttribution: lightsurge commentedOops no, if this was the case the auto availability would be completely useless... I must be misunderstanding how drupal_write_record works and that it will only update a record if explicitly asked to?