mirror of
https://github.com/silverstripe/silverstripe-translatable
synced 2024-10-22 09:05:59 +00:00
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:
parent
2fb20aa7e5
commit
eaa5555dfc
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user