What steps will reproduce the problem?
1.You can reserve back in time the same day. For instance, in the afternoon,
the user can reserve for the morning.
What is the expected output? What do you see instead?
It is expected that during the afternoon, you cannot reserve for the morning.
here is my Quick&Dirty workaroud:
- add this line in the "else" condition of the "make_reservation" php function:
else{
if ($week == global_week_number && $day == global_day_number && (substr($time, -2) - date("H")) < 1) return('You can\'t reserve back in time'); //extract the "Timeto" hour and subtract the current hour to it.
...
}
Regards,
Erwan
Original issue reported on code.google.com by erwan.si...@gmail.com on 14 Oct 2015 at 7:59
Original issue reported on code.google.com by
erwan.si...@gmail.com
on 14 Oct 2015 at 7:59