mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-05-03 22:30:10 +02:00
parent
02afa9fd55
commit
e0f0fbf1cc
@ -64,17 +64,11 @@ class GroupController extends AuthBackendController
|
|||||||
$query->applyFilter($filterEditor->getFilter());
|
$query->applyFilter($filterEditor->getFilter());
|
||||||
$this->setupFilterControl($filterEditor);
|
$this->setupFilterControl($filterEditor);
|
||||||
|
|
||||||
try {
|
|
||||||
$this->setupPaginationControl($query);
|
|
||||||
$this->view->groups = $query;
|
$this->view->groups = $query;
|
||||||
} catch (Exception $e) {
|
|
||||||
Notification::error($e->getMessage());
|
|
||||||
Logger::error($e);
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->view->backend = $backend;
|
$this->view->backend = $backend;
|
||||||
$this->createListTabs()->activate('group/list');
|
$this->createListTabs()->activate('group/list');
|
||||||
|
|
||||||
|
$this->setupPaginationControl($query);
|
||||||
$this->setupLimitControl();
|
$this->setupLimitControl();
|
||||||
$this->setupSortControl(
|
$this->setupSortControl(
|
||||||
array(
|
array(
|
||||||
|
@ -26,11 +26,6 @@ if ($backend === null) {
|
|||||||
$reducible = $backend instanceof Reducible;
|
$reducible = $backend instanceof Reducible;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! isset($groups)) {
|
|
||||||
echo $this->translate('Failed to fetch any groups') . '</div>';
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (count($groups) > 0): ?>
|
if (count($groups) > 0): ?>
|
||||||
<table data-base-target="_next" class="action group-list">
|
<table data-base-target="_next" class="action group-list">
|
||||||
<thead>
|
<thead>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user