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