Skip to content

Commit

Permalink
Merge pull request #79 from southbridgeio/fix-assigned-to-error
Browse files Browse the repository at this point in the history
fix nil assign
  • Loading branch information
nevrfl authored Nov 4, 2024
2 parents 9678090 + 75fd2ab commit 648155a
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 648155a

Please sign in to comment.