From c3f214402389a737d50be62eb9c6172943d50783 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Mon, 7 Nov 2016 15:25:36 +0100 Subject: [PATCH] Fix reference to allowed_values --- lib/open_project/costs/work_package_filter.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/open_project/costs/work_package_filter.rb b/lib/open_project/costs/work_package_filter.rb index 17d4a8ea85..eae0705117 100644 --- a/lib/open_project/costs/work_package_filter.rb +++ b/lib/open_project/costs/work_package_filter.rb @@ -23,7 +23,7 @@ module OpenProject::Costs alias :project :context alias :project= :context= - def values + def allowed_values CostObject .where(project_id: project) .order('subject ASC') @@ -47,7 +47,7 @@ module OpenProject::Costs :list_optional end - def name + def human_name WorkPackage.human_attribute_name(:cost_object) end end