Skip to content

Commit

Permalink
remove deprecated getView call and disable cache
Browse files Browse the repository at this point in the history
  • Loading branch information
paulandrieux committed Jun 6, 2016
1 parent 26a6f38 commit f93aa9c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Resolver/WidgetFilterContentResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,15 @@ 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(),
'viewReferenceId' => $currentView()->getReference()->getId(),
]);
$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;
}

Expand Down
1 change: 1 addition & 0 deletions Resources/config/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ victoire_core:
Filter:
class: "Victoire\\Widget\\FilterBundle\\Entity\\WidgetFilter"
name: Filter
cache: false

jms_translation:
configs:
Expand Down
7 changes: 1 addition & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

0 comments on commit f93aa9c

Please sign in to comment.