Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on getTranslatableTabSet #32

Open
PatrickElsing opened this issue Nov 24, 2015 · 4 comments
Open

Error on getTranslatableTabSet #32

PatrickElsing opened this issue Nov 24, 2015 · 4 comments

Comments

@PatrickElsing
Copy link

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

@wernerkrauss
Copy link
Contributor

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?

@PatrickElsing
Copy link
Author

@wernerkrauss yes i generate it automatically without any customization.

@bummzack
Copy link
Owner

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.

@wernerkrauss
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants