Skip to content
This repository has been archived by the owner on Jan 27, 2025. It is now read-only.

copy_field/move_field to existing field does not overwrite but create an object #99

Closed
TobiasNx opened this issue Dec 22, 2021 · 2 comments
Labels
Bug Something isn't working

Comments

@TobiasNx
Copy link
Collaborator

TobiasNx commented Dec 22, 2021

When using copy_field/move_field to an existing field.
Fix does not overwrite but create an object with multiple instances. I would have expected that the field would be overwritten.

See here

Output is:

{
  "animal" : {
    "1" : "dog",
    "2" : "cat"
  },
  "bnimal" : "cat"
}

Output expected:

{
  "animal" : "cat",
  "bnimal" : "cat"
}
@TobiasNx TobiasNx added the Bug Something isn't working label Dec 22, 2021
@TobiasNx
Copy link
Collaborator Author

TobiasNx commented Feb 1, 2022

Perhaps this should also be true for add_field

@fsteeg
Copy link
Member

fsteeg commented Feb 3, 2022

Duplicate of #116, closing.

@fsteeg fsteeg closed this as completed Feb 3, 2022
@fsteeg fsteeg moved this to Done in Metafacture Feb 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

2 participants