Skip to content

Unable to book arround blackout times #1224

@PECgonzalezi

Description

@PECgonzalezi

[x]: This is a bug and not a question.

[x]: I understand that the best way to resolve this issue is to solve it and propose a Pull Request.

Describe the bug**

To Reproduce**

Steps to reproduce the behavior:

  1. Go to 'Application management' / 'Blackout Times'.
  2. Set a Blackout time bigger than 1 day. For example from 1/04/2026 00:30 to 12/04/2026 23:30
  3. Select the resource and reason.
  4. Does not repeat.
  5. Go to 'Schedule' 'Bookings'.

Expected behavior**

If none of the Blackout period is shown in the calendar, it works and you can book.
If the full period shown in the calendar is a blackout, it works.
If the shown period has available and blackout days, it stucks in "Loading reservations" and you can't book the available days.
If you go to next week (completely available) it works again.

The problem appears the week that has some days affected by a blackout period and some days available.

Screenshots**

Image

Specifications

Tested in v4.0.0 and v4.2.0 installed in mariadb v10.6.13 in a docker stack.
Tested in Edge and Chrome.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions