Skip to content

Commit

Permalink
Tabs: Merge the action's params into the current request url's params
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Meyer committed Jun 16, 2015
1 parent 68be11b commit ba4dd25
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions library/Icinga/Web/Widget/Tabs.php
Expand Up @@ -309,13 +309,14 @@ private function renderCloseTab()

private function renderRefreshTab()
{
$url = Url::fromRequest()->without('renderLayout');
$tab = $this->get($this->getActiveName());

if ($tab !== null) {
$url = Url::fromRequest($tab->getUrl()->getParams()->toArray(false))->without('renderLayout');
$label = $this->view()->escape(
$tab->getLabel()
);
} else {
$url = Url::fromRequest()->without('renderLayout');
}

if (! empty($label)) {
Expand Down

0 comments on commit ba4dd25

Please sign in to comment.