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