summaryrefslogtreecommitdiffstats
path: root/app/models/issue.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/issue.rb')
-rw-r--r--app/models/issue.rb10
1 files changed, 7 insertions, 3 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb
index 4d3d1dbe1..3d8df790b 100644
--- a/app/models/issue.rb
+++ b/app/models/issue.rb
@@ -1762,10 +1762,14 @@ class Issue < ActiveRecord::Base
end
end
- # Default assignment based on category
+ # Default assignment based on project or category
def default_assign
- if assigned_to.nil? && category && category.assigned_to
- self.assigned_to = category.assigned_to
+ if assigned_to.nil?
+ if category && category.assigned_to
+ self.assigned_to = category.assigned_to
+ elsif project && project.default_assigned_to
+ self.assigned_to = project.default_assigned_to
+ end
end
end