Skip to content

Commit

Permalink
Fix clearing fields in merge edits (#904)
Browse files Browse the repository at this point in the history
  • Loading branch information
peolic authored Jan 24, 2025
1 parent c9fc7ec commit 2fb6b66
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion pkg/manager/edit/performer.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ func (m *PerformerEditProcessor) mergeEdit(input models.PerformerEditInput, inpu
}

// perform a diff against the input and the current object
performerEdit, err := input.Details.PerformerEditFromMerge(*performer, mergeSources, inputArgs)
detailArgs := inputArgs.Field("details")
performerEdit, err := input.Details.PerformerEditFromMerge(*performer, mergeSources, detailArgs)
if err != nil {
return err
}
Expand Down
3 changes: 2 additions & 1 deletion pkg/manager/edit/scene.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,8 @@ func (m *SceneEditProcessor) mergeEdit(input models.SceneEditInput, inputArgs ut
}

// perform a diff against the input and the current object
sceneEdit, err := input.Details.SceneEditFromMerge(*scene, mergeSources, inputArgs)
detailArgs := inputArgs.Field("details")
sceneEdit, err := input.Details.SceneEditFromMerge(*scene, mergeSources, detailArgs)
if err != nil {
return err
}
Expand Down
3 changes: 2 additions & 1 deletion pkg/manager/edit/studio.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ func (m *StudioEditProcessor) mergeEdit(input models.StudioEditInput, inputArgs
}

// perform a diff against the input and the current object
studioEdit, err := input.Details.StudioEditFromMerge(*studio, mergeSources, inputArgs)
detailArgs := inputArgs.Field("details")
studioEdit, err := input.Details.StudioEditFromMerge(*studio, mergeSources, detailArgs)
if err != nil {
return err
}
Expand Down
3 changes: 2 additions & 1 deletion pkg/manager/edit/tag.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ func (m *TagEditProcessor) mergeEdit(input models.TagEditInput, inputArgs utils.
}

// perform a diff against the input and the current object
tagEdit := input.Details.TagEditFromMerge(*tag, mergeSources, inputArgs)
detailArgs := inputArgs.Field("details")
tagEdit := input.Details.TagEditFromMerge(*tag, mergeSources, detailArgs)

aliases, err := tqb.GetAliases(tagID)

Expand Down

0 comments on commit 2fb6b66

Please sign in to comment.