From bdd63891ba04be5fbb2c57484aa8c15ac544ea75 Mon Sep 17 00:00:00 2001 From: Tim Felgentreff Date: Fri, 15 Jul 2011 18:25:00 +0200 Subject: [PATCH] ensure proper rendering of ProjectId#available_values --- app/models/cost_query/filter/project_id.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/cost_query/filter/project_id.rb b/app/models/cost_query/filter/project_id.rb index 08d1cf0ca0..fded8902de 100644 --- a/app/models/cost_query/filter/project_id.rb +++ b/app/models/cost_query/filter/project_id.rb @@ -18,7 +18,7 @@ class CostQuery::Filter::ProjectId < CostQuery::Filter::Base while (ancestors.any? && !project.is_descendant_of?(ancestors.last)) ancestors.pop end - map << [project.name, project.id, ancestors.size] + map << [project.name, project.id, {:level => ancestors.size}] ancestors << project end map