Skip to content

Commit

Permalink
Merge pull request #366 from paulandrieux/hotfix/widgetIds-fix
Browse files Browse the repository at this point in the history
fix the way we get all the widget's view ids
  • Loading branch information
paulandrieux committed Mar 29, 2016
2 parents ee4d717 + 41c7f6e commit 9800ec0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Bundle/CoreBundle/Entity/View.php
Original file line number Diff line number Diff line change
Expand Up @@ -688,9 +688,10 @@ public function removeWidgetMap(WidgetMap $widgetMap)
public function getWidgetsIds()
{
$widgetIds = [];

foreach ($this->getWidgetMaps() as $widgetMap) {
$widgetIds[] = $widgetMap->getWidget()->getId();
foreach($this->getBuiltWidgetMap() as $slot => $_widgetMaps) {
foreach ($_widgetMaps as $widgetMap) {
$widgetIds[] = $widgetMap->getWidget()->getId();
}
}

return $widgetIds;
Expand Down

0 comments on commit 9800ec0

Please sign in to comment.