Fix reference to allowed_values

pull/6827/head
Oliver Günther 8 years ago
parent 9d531433f4
commit c3f2144023
No known key found for this signature in database
GPG Key ID: 88872239EB414F99
  1. 4
      lib/open_project/costs/work_package_filter.rb

@ -23,7 +23,7 @@ module OpenProject::Costs
alias :project :context alias :project :context
alias :project= :context= alias :project= :context=
def values def allowed_values
CostObject CostObject
.where(project_id: project) .where(project_id: project)
.order('subject ASC') .order('subject ASC')
@ -47,7 +47,7 @@ module OpenProject::Costs
:list_optional :list_optional
end end
def name def human_name
WorkPackage.human_attribute_name(:cost_object) WorkPackage.human_attribute_name(:cost_object)
end end
end end

Loading…
Cancel
Save