Skip to content

Commit

Permalink
Merge pull request #1953 from CristinaRO/issue-4191-deleted-recipient…
Browse files Browse the repository at this point in the history
…-account

Hopefully fixes #4191 in a good way
  • Loading branch information
elzj committed Dec 23, 2014
2 parents 4e31047 + fb496d0 commit bcb27dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/work.rb
Expand Up @@ -370,7 +370,7 @@ def set_challenge_info
# if this is fulfilling a challenge, add the collection and recipient
challenge_assignments.each do |assignment|
add_to_collection(assignment.collection)
self.gifts << Gift.new(:pseud => assignment.requesting_pseud) unless (recipients && recipients.include?(assignment.requesting_pseud.byline))
self.gifts << Gift.new(:pseud => assignment.requesting_pseud) unless (assignment.requesting_pseud.blank? || recipients && recipients.include?(assignment.request_byline))
end
end

Expand Down

0 comments on commit bcb27dc

Please sign in to comment.