Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed a crash when redmine "assign to group" is turned on #1

Merged
merged 1 commit into from Mar 31, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/auto_watch_hook.rb
Expand Up @@ -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