Project

General

Profile

Patch #20124 » sql_for_fields_with_group-git.diff

Rupesh J, 2015-06-18 09:25

View differences:

app/models/query.rb
588 588
      elsif respond_to?("sql_for_#{field}_field")
589 589
        # specific statement
590 590
        filters_clauses << send("sql_for_#{field}_field", field, operator, v)
591
      elsif field =~ /^(.+)\./ && respond_to?("sql_for_#{$2}_field")
592
        # specific statement
593
        filters_clauses << send("sql_for_#{$2}_field", field, operator, v)
591 594
      else
592 595
        # regular field
593 596
        filters_clauses << '(' + sql_for_field(field, operator, v, queried_table_name, field) + ')'
(1-1/2)