defect-23596.diff

patch by dee cay - Go MAEDA, 2016-08-28 15:00

Download (592 Bytes)

View differences:

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