If the ball touches a fielder who is touching the boundary or the ground beyond the boundary, then it is treated as if the ball has touched the boundary. The same goes for when the ball touches a fielder who is in the air who touched the boundary or the ground beyond the boundary immediately before going in the air, if the fielder had not legally touched the ball before.