Skip to content

Possible bug in reservation reminders #768

@cgutteridge

Description

@cgutteridge

I think I've found a bug. I'd like another pair of eyes to look at it and confirm, and if someone else agrees I'll do a PR.

Describe the bug**

Our users are reporting that they are getting reminder emails for cancelled reservations.

To Reproduce**

Steps to reproduce the behavior:

  1. Have n instance with reminder notifications turned on
  2. create a booking
  3. cancel that booking
  4. Still get email

Expected behavior**

Don't get reminders for cancelled bookings.

Specifications

  • LibreBooking version librebooking-2.8.6.2-GA4-Fix.zip

This looks to be a logic error in https://github.com/LibreBooking/app/blob/3571cb74dee6d640dee3bfa824b7f3bcb29ca4d3/lib/Database/Commands/Queries.php#L672C1-L672C309

It looks to need brackets around the long OR statement as the status<>2 is only filtering the first kind of reminder.

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