mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-04-15 21:59:47 -04:00
Move problem toggle above shifting params
If the problem toggle is created after the params are shifted, it redirects to the page without them. To solve this I simply moved the problem toggle before shifting the params.
This commit is contained in:
parent
b5eed40255
commit
def4dce4e3
1 changed files with 4 additions and 1 deletions
|
|
@ -242,11 +242,14 @@ class ServicesController extends Controller
|
|||
|
||||
$this->handleSearchRequest($query);
|
||||
|
||||
// Create problem toggle before shifting params. Otherwise, the toggle
|
||||
// will redirect to the grid without the shifted params.
|
||||
$problemToggle = $this->createProblemToggle();
|
||||
|
||||
$this->params->shift('page'); // Handled by PivotTable internally
|
||||
$this->params->shift('limit'); // Handled by PivotTable internally
|
||||
$flipped = $this->params->shift('flipped', false);
|
||||
|
||||
$problemToggle = $this->createProblemToggle();
|
||||
$sortControl = $this->createSortControl($query, [
|
||||
'service.display_name' => t('Service Name'),
|
||||
'host.display_name' => t('Host Name'),
|
||||
|
|
|
|||
Loading…
Reference in a new issue