translatable-dataobject icon indicating copy to clipboard operation
translatable-dataobject copied to clipboard

Error on getTranslatableTabSet

Open PatrickElsing opened this issue 9 years ago • 4 comments

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

PatrickElsing avatar Nov 24 '15 18:11 PatrickElsing

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 avatar Dec 19 '15 21:12 wernerkrauss

@wernerkrauss yes i generate it automatically without any customization.

PatrickElsing avatar Dec 21 '15 09:12 PatrickElsing

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.

bummzack avatar Dec 21 '15 15:12 bummzack

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.

wernerkrauss avatar Dec 22 '15 14:12 wernerkrauss