|
|
@ -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 |
|
|
|