Skip to content

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.

@mitchellkwong mitchellkwong force-pushed the mitchellkwong/clashing-bookings branch from ccd0254 to a724798 Compare February 15, 2021 21:52
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.

2 participants