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

Entity field named "client" breaks create call #184

Open
dleavitt opened this issue Jan 21, 2019 · 2 comments
Open

Entity field named "client" breaks create call #184

dleavitt opened this issue Jan 21, 2019 · 2 comments
Assignees
Labels

Comments

@dleavitt
Copy link

To reproduce:

  1. Create a content model with a field named client.
  2. entries.create(content_type, { client: 'asdf' } )

Entry is created successfully but errors in after_create hook (the first time client is referenced)
https://github.com/contentful/contentful-management.rb/issues/new

undefined method 'default_locale' for "asdf":String

@dlitvakb
Copy link
Contributor

Hey @dleavitt,

Thanks for reporting this, I'll take a look into how to solve this.

Cheers

@dlitvakb dlitvakb self-assigned this Jan 23, 2019
@dlitvakb dlitvakb added the bug label Jan 23, 2019
@dlitvakb
Copy link
Contributor

dlitvakb commented Apr 2, 2019

Hey @dleavitt,

I've taken some time into researching this, sadly, it's not so easy to fix. Maybe in a next major version it will be solved, but for the moment this will have to remain as is.

So this will not get fixed, I encourage you to rename that field to something different.

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

No branches or pull requests

2 participants