Fix duplication of work package priority in priority drop down

pull/984/head
Till Breuer 11 years ago
parent 85249e5e7c
commit 1e29f9fb3a
  1. 5
      app/controllers/work_packages_controller.rb

@ -384,7 +384,10 @@ class WorkPackagesController < ApplicationController
def priorities
priorities = IssuePriority.active
priorities << work_package.priority if work_package
current_priority = work_package.try :priority
priorities << current_priority if current_priority && !priorities.include?(current_priority)
priorities
end

Loading…
Cancel
Save