diff --git a/Loop/FrontView.php b/Loop/FrontView.php index 4753ead..ed423e9 100644 --- a/Loop/FrontView.php +++ b/Loop/FrontView.php @@ -49,7 +49,7 @@ public function buildArray() { $findEvent = new FindViewEvent($this->getSourceId(), $this->getSource()); - $this->dispatcher->dispatch('view.find', $findEvent); + $this->dispatcher->dispatch($findEvent, 'view.find'); return $findEvent->hasView() ? [ [ 'name' => $findEvent->getView(), diff --git a/templates/backOffice/default/view-includes/generic-view-selector.html b/templates/backOffice/default/view-includes/generic-view-selector.html index 97c6cdd..b3450c9 100644 --- a/templates/backOffice/default/view-includes/generic-view-selector.html +++ b/templates/backOffice/default/view-includes/generic-view-selector.html @@ -40,6 +40,7 @@ {intl d="view.bo.default" l="Choisissez une vue :"} + {$viewSelected = ''} {loop type="view" name="viewselected" source=$sourceType source_id=$sourceId} {$viewSelected = $VIEW} {/loop} @@ -68,6 +69,7 @@ {intl d="view.bo.default" l="Choisissez une vue :"} + {$viewSelected = ''} {loop type="view" name="viewselected" source=$sourceType source_id=$sourceId} {$viewSelected = $SUBTREE_VIEW} {/loop} @@ -91,6 +93,7 @@ {intl d="view.bo.default" l="Choisissez une vue :"} + {$viewSelected = ''} {loop type="view" name="viewselected" source=$sourceType source_id=$sourceId} {$viewSelected = $CHILDREN_VIEW} {/loop} @@ -130,4 +133,4 @@ {/form} - \ No newline at end of file +