Skip to content

Commit

Permalink
Add binding of toolbar widget to controller in ListController.
Browse files Browse the repository at this point in the history
Signed-off-by: Sam <6567634+sampoyigi@users.noreply.github.com>
  • Loading branch information
sampoyigi committed May 3, 2023
1 parent f09796e commit a37e6c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/admin/actions/ListController.php
Expand Up @@ -218,6 +218,7 @@ public function makeList($alias)
$this->toolbarWidget[$alias] = clone $this->controller->widgets['toolbar'];
if ($this->toolbarWidget[$alias] instanceof \Admin\Widgets\Toolbar)
$this->toolbarWidget[$alias]->reInitialize($listConfig['toolbar'] ?? $modelConfig['toolbar']);
$this->toolbarWidget[$alias]->bindToController();
}

// Prep the optional filter widget
Expand Down

0 comments on commit a37e6c2

Please sign in to comment.