mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-09-25 18:59:04 +02:00
DashboardsController: Add requested params to the refresh url when reordering widgets
This commit is contained in:
parent
f9aba0c7ff
commit
d7dcfd7cd9
@ -376,14 +376,15 @@ class DashboardsController extends CompatController
|
||||
}
|
||||
}
|
||||
|
||||
$params = clone $this->params;
|
||||
if ($duplicatedError) {
|
||||
// Even though the drop action couldn't be performed successfully from our server, Sortable JS has
|
||||
// already dropped the draggable element though, so we need to redirect here to undo it.
|
||||
$this->redirectNow(Dashboard::BASE_ROUTE . '/settings');
|
||||
$this->redirectNow(Url::fromPath(Dashboard::BASE_ROUTE . '/settings')->setParams($params));
|
||||
}
|
||||
|
||||
$this->createTabs();
|
||||
$this->getTabs()->setRefreshUrl(Url::fromPath(Dashboard::BASE_ROUTE . '/settings'));
|
||||
$this->getTabs()->setRefreshUrl(Url::fromPath(Dashboard::BASE_ROUTE . '/settings')->setParams($params));
|
||||
$this->dashboard->activate('dashboard_settings');
|
||||
$this->sendMultipartUpdate();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user