diff --git a/app/models/issue_priority.rb b/app/models/issue_priority.rb index fa5a29c8a..d07baa6b6 100644 --- a/app/models/issue_priority.rb +++ b/app/models/issue_priority.rb @@ -61,7 +61,7 @@ class IssuePriority < Enumeration index == (priorities.size - 1) ? "highest" : "high#{priorities.size - index}" end - update_all({:position_name => name}, :id => priority.id) + where(:id => priority.id).update_all({:position_name => name}) end end end