Division by 0 when max_slots is 0

Created on 12 February 2024, about 1 year ago

Problem/Motivation

One of my customers set the max slots to 0 to disable further bookings. This caused a WSOD

DivisionByZeroError: Division by zero in Drupal\bookable_calendar\Renderer->instanceAvailability() (line 139 in web/modules/contrib/bookable_calendar/src/Renderer.php).
🐛 Bug report
Status

Needs review

Version

2.2

Component

Code

Created by

🇦🇹Austria hudri Austria

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024