Skip to content

Public resource display incorrectly marks entire day as reserved when only partial time is booked #1202

@lennert1986

Description

@lennert1986

When attempting to make a reservation on the public resource display page, the availability coloring appears to be incorrect.

If there is already an existing reservation for a limited time period, for example from 08:00 to 10:00, the rest of the day is also shown as reserved/unavailable instead of only that booked time range.

This makes the schedule display misleading, because it looks like the entire remaining day is blocked even though only part of the day is actually reserved.

I am using LibreBooking version 4.2, and I am seeing this on the same resource-display.php public display page.

Observed behavior:

An existing reservation covers only a specific time range, for example 08:00–10:00
After that, the display colors the remaining day as if it is also reserved
The visual availability does not match the actual reservation period

Expected behavior:

Only the actual reserved time range should be shown as reserved
The remaining time slots in the day should remain shown as available, unless they are actually booked

Impact:
This can make users think the resource is fully booked for the day when it is not, which may prevent valid reservations.

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