Skip to content

Commit

Permalink
fix nil assign
Browse files Browse the repository at this point in the history
  • Loading branch information
nevrfl committed Nov 4, 2024
1 parent 68ac586 commit 75fd2ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/recurring_task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def copy_issue(associations = [])
end
original.author
end
copy.assigned_to = nil if original.assigned_to.status == 3
copy.assigned_to = nil if original.assigned_to.blank? || original.assigned_to.status == User::STATUS_LOCKED
copy.custom_field_values = original.custom_field_values.inject({}) { |h, v| h[v.custom_field_id] = v.value; h }
copy.author_id = new_author.id
copy.tracker_id = original.tracker_id
Expand Down

0 comments on commit 75fd2ab

Please sign in to comment.