@@ -99,7 +99,8 class IssueStatus < ActiveRecord::Base | |||
|
99 | 99 | " JOIN #{JournalDetail.table_name} d ON d.journal_id = j.id" + |
|
100 | 100 | " WHERE j.journalized_type = 'Issue' AND j.journalized_id = #{Issue.table_name}.id" + |
|
101 | 101 | " AND d.property = 'attr' AND d.prop_key = 'status_id' AND d.value = :status_id" |
|
102 |
Issue.where(:status_id => id, :closed_on => nil). |
|
|
102 | Issue.where(:status_id => id, :closed_on => nil). | |
|
103 | update_all(["closed_on = (#{subselect})", {:status_id => id.to_s}]) | |
|
103 | 104 | |
|
104 | 105 | # Then we update issues that don't have a journal which means the |
|
105 | 106 | # current status was set on creation |
General Comments 0
You need to be logged in to leave comments.
Login now