git-svn-id: http://78.47.251.156/svn/dev/sterntours-3@3362 f459cee4-fb09-11de-96c3-f9c5f16c3c76
This commit is contained in:
parent
f53087fde1
commit
c2d6038228
7 changed files with 250 additions and 259 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue