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

Updating non localized fields is ignored when entry locale is not the default locale #201

Open
HQ063 opened this issue Jul 12, 2019 · 0 comments

Comments

@HQ063
Copy link
Contributor

HQ063 commented Jul 12, 2019

I have a space with two locales, en-CA and fr-CA. I would expect that if I set a value into a non-localized field, it should always set the value, regarding the current locale. But this is what happens when you try to set a non-localized field using a non-default locale:

[150] pry(main)> entry = content_type.entries.new
=> #<Contentful::Management::DynamicEntry[product]: @sys={:space=>#<Contentful::Management::Link: @sys={:type=>"Link", :linkType=>"Space", :id=>"vyk520m9px5z"}>}>
[151] pry(main)> entry.default_locale
=> "en-CA"
[152] pry(main)> entry.locale = 'fr-CA' # this is the secondary locale for that space
=> "fr-CA"
[153] pry(main)> entry.slug
=> nil
[154] pry(main)> entry.slug = "this-is-a-slug"
=> "this-is-a-slug"
[155] pry(main)> entry.slug
=> nil # This doesn't has any sense...

This issue combined with #204, creates a messy situation that forces us to use a lot of weird workarounds to be able to edit the content in the spaces that are not using the client default locale.

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

1 participant