Permalink
Browse files

No longer crashes on issue group assign

  • Loading branch information...
1 parent 90ae7fb commit be93aad9913dfd5cdab40c7703151aa50b7ff5ee @bensonk bensonk committed Mar 27, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/auto_watch_hook.rb
View
@@ -5,8 +5,8 @@ def controller_issues_edit_before_save(context = { })
unless @issue.watched_by?(User.current) || @issue.author == User.current
@issue.add_watcher(User.current)
end
- unless @issue.assigned_to == nil || @issue.watched_by?(@issue.assigned_to) || @issue.author == @issue.assigned_to
+ unless @issue.assigned_to == nil || (not @issue.assigned_to === User) || @issue.watched_by?(@issue.assigned_to) || @issue.author == @issue.assigned_to
@issue.add_watcher(@issue.assigned_to)
end
end
-end
+end

0 comments on commit be93aad

Please sign in to comment.