Skip to content

Commit

Permalink
Fix bug with lower third associated award ID getting wiped out by edits.
Browse files Browse the repository at this point in the history
  • Loading branch information
patfair committed Oct 4, 2023
1 parent cc4ceb1 commit 81d2762
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions web/setup_lower_thirds.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,9 @@ func (web *Web) saveLowerThird(lowerThird *model.LowerThird) error {
lowerThird.DisplayOrder = web.arena.Database.GetNextLowerThirdDisplayOrder()
err = web.arena.Database.CreateLowerThird(lowerThird)
} else {
lowerThird.DisplayOrder = oldLowerThird.DisplayOrder
err = web.arena.Database.UpdateLowerThird(lowerThird)
oldLowerThird.TopText = lowerThird.TopText
oldLowerThird.BottomText = lowerThird.BottomText
err = web.arena.Database.UpdateLowerThird(oldLowerThird)
}
if err != nil {
return err
Expand Down

0 comments on commit 81d2762

Please sign in to comment.