Skip to content

Commit

Permalink
Merge pull request #18716 from jrafanie/save_changes_before_locking
Browse files Browse the repository at this point in the history
Save unsaved changes before locking
  • Loading branch information
kbrock authored May 2, 2019
2 parents 5c506fd + ae30d11 commit 08891f8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/service_template_transformation_plan_task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ def conversion_options
end

def update_options(opts)
save if changed?
with_lock do
# Automate is updating this options hash (various keys) as well, using with_lock.
options.merge!(opts)
Expand Down

0 comments on commit 08891f8

Please sign in to comment.