ensure proper rendering of ProjectId#available_values

pull/6827/head
Tim Felgentreff 13 years ago
parent 7db14c146a
commit bdd63891ba
  1. 2
      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

Loading…
Cancel
Save