Skip to content

Commit

Permalink
Additional status change didn't limit tracker
Browse files Browse the repository at this point in the history
  • Loading branch information
danielvijge committed Feb 18, 2016
1 parent a7bf8c4 commit e043cb1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Issue Status Changer #
# Redmine Issue Status Changer #

This module defines three `rake` tasks for automatically changing the issue status.

Expand Down
2 changes: 1 addition & 1 deletion app/models/issue_status_changer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def self.__change_issues_on_subtask_status()
old_status = settings[:new_status]['additional_from'][tracker]
new_status = settings[:new_status]['additional_to'][tracker]

Issue.where("id IN (SELECT subtasks.parent_id from issues AS subtasks WHERE subtasks.status_id IN (#{new_status}) AND subtasks.parent_id=`issues`.id)").each do |issue|
Issue.where("tracker_id=#{tracker} AND id IN (SELECT subtasks.parent_id from issues AS subtasks WHERE subtasks.status_id IN (#{new_status}) AND subtasks.parent_id=`issues`.id)").each do |issue|
i = Issue.find issue.id
if is_higher_status(i.status_id, new_status) then

Expand Down

0 comments on commit e043cb1

Please sign in to comment.