Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

play nice in case sql_for_field has gotten more params

  • Loading branch information...
commit cc15bc43ab4b4d4d601fcea9869ff16b676259a9 1 parent 6581b1e
Jan Schulz-Hofen authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/question_query_patch.rb
View
4 lib/question_query_patch.rb
@@ -58,7 +58,7 @@ def question_available_filters
end
# Wrapper for +sql_for_field+ so Questions can use a different table than Issues
- def question_sql_for_field(field, operator, v, db_table, db_field, is_custom_filter=false)
+ def question_sql_for_field(field, operator, v, db_table, db_field, is_custom_filter=false, *args)
if field == "question_assigned_to_id" || field == "question_asked_by_id"
v = values_for(field).clone
@@ -83,7 +83,7 @@ def question_sql_for_field(field, operator, v, db_table, db_field, is_custom_fil
return sql
else
- return sql_for_field_before_question(field, operator, v, db_table, db_field, is_custom_filter)
+ return sql_for_field_before_question(field, operator, v, db_table, db_field, is_custom_filter, *args)
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.