Tabs: Merge the action's params into the current request url's params

This commit is contained in:
Johannes Meyer 2015-06-16 16:02:32 +02:00
parent 68be11b929
commit ba4dd255ec

View File

@ -309,13 +309,14 @@ EOT;
private function renderRefreshTab() private function renderRefreshTab()
{ {
$url = Url::fromRequest()->without('renderLayout');
$tab = $this->get($this->getActiveName()); $tab = $this->get($this->getActiveName());
if ($tab !== null) { if ($tab !== null) {
$url = Url::fromRequest($tab->getUrl()->getParams()->toArray(false))->without('renderLayout');
$label = $this->view()->escape( $label = $this->view()->escape(
$tab->getLabel() $tab->getLabel()
); );
} else {
$url = Url::fromRequest()->without('renderLayout');
} }
if (! empty($label)) { if (! empty($label)) {