Unexpected Blocks Still Occurring After 3.10.7 Version
It seems the problem is around this area. This are my changes:
//if (($slot_time_end + $block_after * 60) <= $lower_time || $upper_time slots_logic->is_exclusive_mode() && $this->slots_logic->is_provider_is_busy($app, $location, $service)) {
// $slots[$temp_time] = 0;
// continue;
// }
// Cross time – remove one slot
// $slots[$temp_time] = $value – 1;
//}
if (($slot_time) < $lower_time || $upper_time slots_logic->is_exclusive_mode() && $this->slots_logic->is_provider_is_busy($app, $location, $service)) {
$slots[$temp_time] = 0;
continue;
}
// Cross time – remove one slot
$slots[$temp_time] = $value – 1;
}
The check for overlapping times is done when the block before is clicked.
Please login or Register to submit your answer