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

All content is deleted when field is added in main data model and not translation model #9461

Closed
2 of 3 tasks
ivaivasileva opened this issue Nov 4, 2021 · 2 comments
Closed
2 of 3 tasks

Comments

@ivaivasileva
Copy link

ivaivasileva commented Nov 4, 2021

Preflight Checklist

Describe the Bug

When I try to add new field in the main data model that I have created and not in the module that is for the translations, because I don't want to translate for all languages this field(it has the same value for all languages), all of my content that is added till now in the translations is deleted and I can not revert it from the history.

To Reproduce

  1. Create data model 'Homepage' with the basic fields:
    image
  2. Create translation for the modul from step 1 with the default translations settings
  3. Create new field in automatically created translation model and save
  4. Go to the Collection tab
  5. Select 'Homepage' model
  6. Add value for this field in en-US and save
  7. Go to Settings -> Data model
  8. Select 'Homepage'
  9. Add new field from type media -> image
  10. Save
  11. Go to the Collection tab
  12. Select 'Homepage'
  13. The value for the translation of the field for en-US is missing(deleted)

Errors Shown

No response

What version of Directus are you using?

^9.0.0-rc.100

What version of Node.js are you using?

v12.22.1

What database are you using?

SQLite ^5.0.2

What browser are you using?

Chrome Version 95.0.4638.54 (Official Build) (64-bit)

What operating system are you using?

Windows 10 Pro

How are you deploying Directus?

running locally

@rijkvanzanten
Copy link
Member

I can't reproduce this on the latest version. I believe this was addressed in #9324. We can reopen this if the issues still exists in 101 👍🏻

@ivaivasileva
Copy link
Author

yes on the new version is fixed, thx

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants