Defect #23596 » defect-23596.diff
app/models/issue_query.rb (working copy) | ||
---|---|---|
468 | 468 |
def sql_for_issue_id_field(field, operator, value) |
469 | 469 |
ids = value.first.to_s.scan(/\d+/).map(&:to_i).join(",") |
470 | 470 |
if ids.present? |
471 |
"#{Issue.table_name}.id IN (#{ids})" |
|
471 |
if operator == "=" |
|
472 |
"#{Issue.table_name}.id IN (#{ids})" |
|
473 |
else |
|
474 |
sql_for_field("id", operator, value, Issue.table_name, "id") |
|
475 |
end |
|
472 | 476 |
else |
473 | 477 |
"1=0" |
474 | 478 |
end |
- « Previous
- 1
- 2
- 3
- 4
- Next »