Fix switch for 1.9

pull/6827/head
Michael Frister 12 years ago
parent 3e5c5e3f67
commit bd74e51d1c
  1. 2
      lib/reporting_engine/report/query_utils.rb

@ -152,7 +152,7 @@ module Report::QueryUtils
else_part = options.delete :else
"-- #{desc}\n\t" \
"CASE #{options.map { |k,v| "\n\t\tWHEN #{field_name_for k}\n\t\t" \
"THEN #{field_name_for v}" }}\n\t\tELSE #{field_name_for else_part}\n\tEND"
"THEN #{field_name_for v}" }.join(', ')}\n\t\tELSE #{field_name_for else_part}\n\tEND"
end
def iso_year_week(field, default_table = nil)

Loading…
Cancel
Save