1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-19 15:01:14 +00:00

Remove useless code in TimeEntryQuery#sql_for_activity_id_field (#31088).

Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@18034 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA 2019-04-03 04:00:12 +00:00
parent 74b65b97e9
commit 9d7595c35f

View File

@ -195,8 +195,6 @@ class TimeEntryQuery < Query
end
def sql_for_activity_id_field(field, operator, value)
condition_on_id = sql_for_field(field, operator, value, Enumeration.table_name, 'id')
condition_on_parent_id = sql_for_field(field, operator, value, Enumeration.table_name, 'parent_id')
ids = value.map(&:to_i).join(',')
table_name = Enumeration.table_name
if operator == '='