def my_bugs
if params[:display_name]
- @user2 = User.find_by_display_name(params[:display_name], :conditions => { :visible => true })
+ @user2 = User.find_by_display_name(params[:display_name], :conditions => { :status => ["active", "confirmed"] })
if @user2
if @user2.data_public? or @user2 == @user
end
bug_comment.save;
bug.last_changed = t
- bug.save
+ bug.save
+
+ sent_to = Set.new;
+ bug.map_bug_comment.each do | cmt |
+ if cmt.user
+ unless sent_to.include?(cmt.user)
+ Notifier.deliver_bug_comment_notification(bug_comment, cmt.user) unless cmt.user == @user;
+ sent_to.add(cmt.user);
+ end
+ end
+ end
+
end
end