Issue Overview:
Sometimes it can happen that you have to handle past reservation (eg: booked through another channel).
It seems that adding a reservation with past dates is causing a fatal error in the Hotel Booking plugin the WordPress site
To reproduce, start : /wp-admin/admin.php?page=mphb_add_new_booking
select today dates, then manually edit number dates with the keyboard, then try to save and the error below appears.
The error message indicates that the function getAvailableRooms() expects a DateTime object but is receiving NULL, leading to a TypeError
( PS : to “J. Davis” :
Please do not reply eg: “There is no such option”. I know. I am a full member and if this functions does not exist yet it can be developed, that’s one of the point of having a forum , thank you )