Skip to content

Commit

Permalink
Fix variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
danielvijge committed Aug 1, 2018
1 parent e6f51d4 commit 864c07e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/models/issue_status_changer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def self.issue_change_state(state)
test = "<"
status_message = settings['status_message_open']
end
protected_trackers = settings[:new_status]['protected_status'][tracker] || ['999']
protected_trackers = settings['new_status']['protected_status'][tracker] || ['999']
protected_status = protected_trackers.join(",")

# TODO: Do not rely on SQL query any more
Expand All @@ -91,9 +91,9 @@ def self.__change_issues_on_subtask_status()

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

old_status = settings[:new_status]['additional_from'][tracker]
new_status = settings[:new_status]['additional_to'][tracker]
protected_status = settings[:new_status]['protected_status'][tracker].join(",")
old_status = settings['new_status']['additional_from'][tracker]
new_status = settings['new_status']['additional_to'][tracker]
protected_status = settings['new_status']['protected_status'][tracker].join(",")

Issue.where("tracker_id=#{tracker} AND id IN (SELECT subtasks.parent_id from issues AS subtasks WHERE subtasks.status_id IN (#{new_status}) AND status_id NOT IN (#{protected_status}) AND subtasks.parent_id=`issues`.id)").each do |issue|
i = Issue.find issue.id
Expand Down

0 comments on commit 864c07e

Please sign in to comment.