git-svn-id: http://78.47.251.156/svn/dev/sterntours-3@3362 f459cee4-fb09-11de-96c3-f9c5f16c3c76
This commit is contained in:
valentin.wacker 2017-12-05 15:26:00 +00:00
parent f53087fde1
commit c2d6038228
7 changed files with 250 additions and 259 deletions

View file

@ -55,7 +55,7 @@ class FewoBookingRequestValidator extends ConstraintValidator
$reservations = $lodging->getReservations();
$timeDiff = date_diff($fromDate, $toDate);
$numberDays = $timeDiff->days + 1;
$numberDays = $timeDiff->days;
$withinSeason = false;
$alreadyReserved = false;
@ -94,7 +94,7 @@ class FewoBookingRequestValidator extends ConstraintValidator
if($numberDays < $season->getMinimumStay())
{
$this->context->buildViolation("Mindestanzahl an Tagen nicht erreicht!")
$this->context->buildViolation("Mindestanzahl an Nächten nicht erreicht!")
->addViolation();
}