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

Relational customfield causes other customfields to be nulled on partial update if omitted #2840

Open
RoyalFoxy opened this issue May 8, 2024 · 0 comments
Assignees
Labels
type: bug 🐛 Something isn't working

Comments

@RoyalFoxy
Copy link

Describe the bug
Updating a customfield relation on a translateable entity with a partial update of other customfields results in the omitted fields being nulled.

To Reproduce
Steps to reproduce the behavior:

  1. Create a customfield which is a relation or a list of relations to another entity on a translatable entity
  2. Create another primitive customfield
  3. Update the customfield relation and omit some other customfields
  4. Check the output

Expected behavior
A partial update including a relation update should not null other omitted customfields

Environment (please complete the following information):

  • @vendure/core version: 2.2.3
  • Nodejs version: 21.0.0
  • Database (mysql/postgres etc): postgres & sqlite

Additional context
Discord issue

@RoyalFoxy RoyalFoxy added the type: bug 🐛 Something isn't working label May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug 🐛 Something isn't working
Projects
Status: 📋 Backlog
Development

No branches or pull requests

2 participants