remove releases from orphaned tracks when bound to release
This commit is contained in:
parent
604e2a4a7c
commit
ec3ccec73c
|
@ -336,6 +336,7 @@ func UpdateReleaseTracks(release *model.Release) http.Handler {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
new_tracks = append(new_tracks, track)
|
new_tracks = append(new_tracks, track)
|
||||||
|
track.Release = release
|
||||||
}
|
}
|
||||||
|
|
||||||
err = controller.UpdateReleaseTracksDB(global.DB, release, new_tracks)
|
err = controller.UpdateReleaseTracksDB(global.DB, release, new_tracks)
|
||||||
|
|
Loading…
Reference in a new issue