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:
parent
74b65b97e9
commit
9d7595c35f
@ -195,8 +195,6 @@ class TimeEntryQuery < Query
|
|||||||
end
|
end
|
||||||
|
|
||||||
def sql_for_activity_id_field(field, operator, value)
|
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(',')
|
ids = value.map(&:to_i).join(',')
|
||||||
table_name = Enumeration.table_name
|
table_name = Enumeration.table_name
|
||||||
if operator == '='
|
if operator == '='
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user