06 Feb
This commit is contained in:
parent
98bd71c760
commit
8b2ec705c9
83 changed files with 3467 additions and 1214 deletions
|
|
@ -7,6 +7,7 @@
|
|||
namespace AppBundle\Controller;
|
||||
|
||||
|
||||
use AppBundle\Entity\FewoPrice;
|
||||
use AppBundle\Entity\Page;
|
||||
use AppBundle\Entity\SunstarTravelProgram;
|
||||
use AppBundle\Entity\FewoLodgingGroup;
|
||||
|
|
@ -254,6 +255,8 @@ class CmsController extends Controller
|
|||
$calendarService = $this->container->get('app.lodging_calendar_util');
|
||||
$lodging = $page->getFewoLodging();
|
||||
|
||||
$prices = $lodging->getPricesFilterNow();
|
||||
$lodging->setPrices($prices);
|
||||
$paddedCalendar = $calendarService->getCalendarWithPadding($calendarService->getMinCalendarEntriesByLodging($lodging));
|
||||
if (count($lodging->getPrices()->toArray()) != 0)
|
||||
{
|
||||
|
|
@ -262,7 +265,6 @@ class CmsController extends Controller
|
|||
} else {
|
||||
$calendar = $paddedCalendar;
|
||||
}
|
||||
|
||||
$imgs = array();
|
||||
$imgs_pre = array();
|
||||
$imgs_post = array();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue