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

lightsurge’s picture

Status: Active » Closed (works as designed)

Oops 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?