Project

General

Profile

Patch #20124 » sql_for_fields_with_group-git-updated.patch

Rupesh J, 2016-02-18 15:12

View differences:

app/models/query.rb
622 622
      elsif respond_to?("sql_for_#{field}_field")
623 623
        # specific statement
624 624
        filters_clauses << send("sql_for_#{field}_field", field, operator, v)
625
      elsif field =~ /\.(.+)/ && respond_to?("sql_for_#{$1}_field")
626
        # specific statement for group field
627
        filters_clauses << send("sql_for_#{$1}_field", field, operator, v)
625 628
      else
626 629
        # regular field
627 630
        filters_clauses << '(' + sql_for_field(field, operator, v, queried_table_name, field) + ')'
(2-2/2)