jbushmaster007 / support-tools

Automatically exported from code.google.com/p/support-tools
Apache License 2.0
1 stars 0 forks source link

reservation back in time possible for the morning of the same day #143

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago

Original comment by chrsm...@google.com on 14 Oct 2015 at 3:07