Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/Michiel-Vanzeir/Litus
Browse files Browse the repository at this point in the history
  • Loading branch information
Michiel-Vanzeir committed Dec 6, 2024
2 parents c7aa94a + 89b70e4 commit 6fd0626
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/ShiftBundle/Entity/RegistrationShift.php
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ public function canHaveAsRegistered(EntityManager $entityManager, Person $regist
return false;
}

if ($this->getStartDate() < $shift->getEndDate() && $shift->getStartDate() < $this->getEndDate()) {
if ($this->getStartDate() < $shift->getEndDate() && $shift->getStartDate() < $this->getEndDate() || $this->getStartDate() === $shift->getStartDate()) {
return false;
}

Expand Down

0 comments on commit 6fd0626

Please sign in to comment.