translatable-dataobject
translatable-dataobject copied to clipboard
Error on getTranslatableTabSet
When add fields with getTranslatableTabSet on ModelAdmin the following error is displayed:
[User Error] collateDataFields() I noticed that a field called 'Portrait' appears twice in your form: '(unknown form)'. One is a 'HtmlEditorField' and the other is a 'HtmlEditorField'
Silverstripe 3.2.1; Translatable 2.1
Same here, sometimes something in the session seems to run amok.
@PatrickElsing did you generate your form automatically using Parent::getCMSField or form scaffolder?
Do you also have the possibility to edit the DO on a Page's gridfield? Maybe this conflicts somehow with modeladmin?
@wernerkrauss yes i generate it automatically without any customization.
Can you give me a minimal code example to reproduce the issue? Does it happen for all DataObjects in ModelAdmin? To be honest, I haven't used the extension in a ModelAdmin context yet.
Found it. In my case, it was some routine modifying Translatable::set_default_locale($locale);
on the fly to get the login page translated... Works now for me.