diff --git a/Resolver/WidgetFilterContentResolver.php b/Resolver/WidgetFilterContentResolver.php index e5cafdb..484da97 100644 --- a/Resolver/WidgetFilterContentResolver.php +++ b/Resolver/WidgetFilterContentResolver.php @@ -73,7 +73,7 @@ public function getWidgetStaticContent(Widget $widget) $filterForm = $this->formFactory->create(FilterType::class, null, $options); - if ($widget->getView()->getId() === $widgetListing->getView()->getId() && $widget->getAjax()) { + if ($widget->getWidgetMap()->getView()->getId() === $widgetListing->getWidgetMap()->getView()->getId() && $widget->getAjax()) { $currentView = $this->currentView; $action = $this->router->generate('victoire_core_widget_show', [ 'id' => $widgetListing->getId(), @@ -81,7 +81,7 @@ public function getWidgetStaticContent(Widget $widget) ]); $ajax = true; } else { - $action = $this->router->generate('victoire_core_page_show', ['url' => $widgetListing->getView()->getUrl()]); + $action = $this->router->generate('victoire_core_page_show', ['url' => $widgetListing->getWidgetMap()->getView()->getUrl()]); $ajax = false; } diff --git a/Resources/config/config.yml b/Resources/config/config.yml index 96c9a9c..5a8ae08 100644 --- a/Resources/config/config.yml +++ b/Resources/config/config.yml @@ -3,6 +3,7 @@ victoire_core: Filter: class: "Victoire\\Widget\\FilterBundle\\Entity\\WidgetFilter" name: Filter + cache: false jms_translation: configs: diff --git a/composer.json b/composer.json index 20b7f19..a587990 100644 --- a/composer.json +++ b/composer.json @@ -30,10 +30,5 @@ } }, "minimum-stability": "dev", - "target-dir": "Victoire/Widget/FilterBundle", - "extra": { - "branch-alias": { - "dev-master": "1.5.x-dev" - } - } + "target-dir": "Victoire/Widget/FilterBundle" }