From d799b3b651a7a160e9482cd3389ab48ed4e62ebb Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Mon, 16 Dec 2019 16:07:21 +0100 Subject: [PATCH] HostgroupController: Keep addControl() calls together --- application/controllers/HostgroupController.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/application/controllers/HostgroupController.php b/application/controllers/HostgroupController.php index d8915ac5..777b11e3 100644 --- a/application/controllers/HostgroupController.php +++ b/application/controllers/HostgroupController.php @@ -41,8 +41,6 @@ class HostgroupController extends Controller public function indexAction() { - $this->addControl((new HostgroupList([$this->hostgroup]))); - $db = $this->getDb(); $hosts = Host::on($db)->with('state'); @@ -63,6 +61,7 @@ class HostgroupController extends Controller yield $this->export($hosts); + $this->addControl((new HostgroupList([$this->hostgroup]))); $this->addControl($paginationControl); $this->addControl($viewModeSwitcher); $this->addControl($limitControl);