Skip to content

Commit

Permalink
Fixed hardcoded tracker id
Browse files Browse the repository at this point in the history
  • Loading branch information
danielvijge committed Aug 3, 2018
1 parent 864c07e commit 9af099c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/issue_status_changer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def self.__change_target_version()

enabled_trackers.split(',').each { |tracker|

Issue.joins(:status).joins('INNER JOIN `issues` AS parent ON parent.id=`issues`.parent_id').where(:tracker_id => 3).where('issue_statuses.is_closed=0').where('`issues`.fixed_version_id!=parent.fixed_version_id OR (parent.fixed_version_id IS NULL AND `issues`.fixed_version_id IS NOT NULL) OR (parent.fixed_version_id IS NOT NULL and `issues`.fixed_version_id IS NULL)').each do |issue|
Issue.joins(:status).joins('INNER JOIN `issues` AS parent ON parent.id=`issues`.parent_id').where(:tracker_id => tracker).where('issue_statuses.is_closed=0').where('`issues`.fixed_version_id!=parent.fixed_version_id OR (parent.fixed_version_id IS NULL AND `issues`.fixed_version_id IS NOT NULL) OR (parent.fixed_version_id IS NOT NULL and `issues`.fixed_version_id IS NULL)').each do |issue|
i = Issue.find issue.id

if i.fixed_version_id? then
Expand Down

0 comments on commit 9af099c

Please sign in to comment.