comment for narrow_values in controller.rb

pull/6827/head
Philipp Tessenow 14 years ago
parent 7d02d35c49
commit 938a2a29c8
  1. 1
      lib/report/controller.rb

@ -118,6 +118,7 @@ module Report::Controller
end
query.column(dependent)
values = [[::I18n.t(:label_inactive), '<<inactive>>']] + query.result.collect {|r| r.fields[query.group_bys.first.field] }
# replace null-values with corresponding placeholder
values = values.map { |value| value.nil? ? [::I18n.t(:label_none), '<<null>>'] : value }
render :json => values.to_json
end

Loading…
Cancel
Save