Hi Nick,
Made the suggested code changes. My test case:
Set maximum booking notice to 24 hours for a resource
Try to reserve for the next 4 consecutive days.
Firstly I get this kind of "stacked" error box when saving the reservation which looks like this:
Please go back and correct errors
This resource cannot be reserved for more than 24 hours in advance
This resource cannot be reserved for more than 24 hours in advance
Please go back and correct errors
Your booking was successfully created for
Date1
Date2
Date3
The system does not book day 4.
To confirm, this is what the code looks like at line 221 of /lib/Reservation.class.php :
$is_valid = $this->check_res($resources_to_add);
if ($this->check_startdate()) {
$is_valid = $is_valid && $this->check_times(); // Check valid times
}
Also note: I haven't made the changes yet to mod_res()
thanks