Patch #20124 » sql_for_fields_with_group-git-updated.patch
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) + ')' |
- « Previous
- 1
- 2
- Next »