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
|
|
@ -159,7 +159,7 @@ class FewoBookingController extends Controller
|
|||
|
||||
$timeDiff = date_diff($finalFromDate, $finalToDate);
|
||||
|
||||
$numberDays = $timeDiff->days + 1;
|
||||
$numberDays = $timeDiff->days; // todo: evtl umbenennen, damit es eindeutig für Nächte und nicht mehr für Tage verwendet wird
|
||||
|
||||
$fewoBookingRequest->setNumberDays($numberDays);
|
||||
$fewoBookingRequest->setLodging($lodging);
|
||||
|
|
@ -246,6 +246,7 @@ class FewoBookingController extends Controller
|
|||
]);
|
||||
}
|
||||
|
||||
// GET
|
||||
return $this->render('default/pages/fewoBooking.html.twig', [
|
||||
'form' => $form->createView(),
|
||||
'fewo_booking_request' => $fewoBookingRequest,
|
||||
|
|
@ -259,6 +260,7 @@ class FewoBookingController extends Controller
|
|||
'allowed_to_dates' => implode(';', $allowedToDateStrs),
|
||||
'page' => $fewoTravelProgramPage,
|
||||
'show_search_sidebar_widget' => false,
|
||||
'terms_filename' => $this->getDoctrine()->getRepository('AppBundle:TravelOrganizer')->find(1)->getFileName(),
|
||||
]);
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue