Automatically assigned (all staff together) doesnt check all staff's availability
Issue #1060
new
To reproduce:
There should be NO global rules and NO product rules. Create a product with daily duration and 2 staff - choose “automatically assigned (all staff together)”. Add 1 rule to Staff A (Available Monday to Sunday). Set NO rule for Staff B.
By all logic, Staff B is never available.
But any day can be bookable, even though one of the staff is not available. WRONG BEHAVIOUR.
And if you choose the “automatically assigned” or “customer selected”, Staff 2 will not be available for booking. CORRECT BEHAVIOUR.
This means that “automatically assigned (all staff together)” doesn’t check for the availability for ALL assigned staff, but if one is available, it shows the slot.
Can be reproduced on 4.17.1 and 4.15.0.