Skip to content

Commit

Permalink
Update directory_num when any team member upload a file.
Browse files Browse the repository at this point in the history
  • Loading branch information
yangsong8 committed Aug 23, 2015
1 parent d0f61ca commit c0db7c6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/models/assignment_participant.rb
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,9 @@ def set_student_directory_num
if !teammate_participant.directory_num.nil?
directory_num_for_this_team = teammate_participant.directory_num
this_team_has_directory_num=true
self.update_attribute('directory_num',directory_num_for_this_team)
self.team.participants.each do | member |
member.update_attribute('directory_num',directory_num_for_this_team)
end
end
end
end
Expand All @@ -618,6 +620,10 @@ def set_student_directory_num
end
end
end

self.team.participants.each do | member |
member.update_attribute('directory_num',self.directory_num)
end
end

def current_stage
Expand Down

0 comments on commit c0db7c6

Please sign in to comment.