BUG: Site tree sidebar not updated when creating a new translation

The site tree sidebar was not updated when creating a new translation,
due to only CurrentForm and Breadcrumbs fragments being updated by default.

Fixed by explicitly setting the X-Pjax response header to Content on
translation creation.
This commit is contained in:
Niklas Forsdahl 2012-08-03 12:51:05 +03:00
parent 2fb20aa7e5
commit eaa5555dfc

View File

@ -98,6 +98,9 @@ class TranslatableCMSMainExtension extends Extension {
$langCode
);
// set the X-Pjax header to Content, so that the whole admin panel will be refreshed
$this->owner->getResponse()->addHeader('X-Pjax', 'Content');
return $this->owner->redirect($url);
}