mirror of
https://github.com/silverstripe/silverstripe-translatable
synced 2024-10-22 11:05:59 +02:00
BUG Fix admin/myprofile saving
Ignore the extension's init() method being called on LeftAndMain base class, which is the case when requests are first routed through AdminRootController as an intermediary rather than the endpoint controller
This commit is contained in:
parent
4f433155f1
commit
6d7700f8f6
@ -9,6 +9,11 @@ class TranslatableCMSMainExtension extends Extension {
|
||||
);
|
||||
|
||||
function init() {
|
||||
// Ignore being called on LeftAndMain base class,
|
||||
// which is the case when requests are first routed through AdminRootController
|
||||
// as an intermediary rather than the endpoint controller
|
||||
if(!$this->owner->stat('tree_class')) return;
|
||||
|
||||
// Locale" attribute is either explicitly added by LeftAndMain Javascript logic,
|
||||
// or implied on a translated record (see {@link Translatable->updateCMSFields()}).
|
||||
// $Lang serves as a "context" which can be inspected by Translatable - hence it
|
||||
|
Loading…
Reference in New Issue
Block a user