Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mitchellkwong/clashing bookings #250

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mitchellkwong
Copy link
Contributor

@mitchellkwong mitchellkwong commented Feb 15, 2021

Description of Change

The method previously used to compare bookings is not inclusive (i.e. 5pm and 5pm don't count as overlapping) and allows for double booking if the start and end times are exactly the same.

Resolved by adding another condition to reject the event if both start and end times are the same.

How to test this change

Tested on local development server. A clashing booking was correctly rejected by the events booking page.

Checklists

Checklist for developer of feature

  • I have performed a code review on my own code
  • I have tested my code against the Travis CI, and it has passed.
  • I have linked to the appropriate issue on GitHub
  • I have written an appropriate description for this PR.
  • I have written how to test this PR.

Checklist for reviewers

  • I have reviewed the new code
  • I have followed the given steps to test the PR, and it passes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant