##// END OF EJS Templates
2.6-stable: fix syntax error on Ruby 1.8.7 (#18280)...
Toshi MARUYAMA -
r13258:6ddae89affda
parent child
Show More
@@ -104,7 +104,8 class IssueStatus < ActiveRecord::Base
104 " JOIN #{JournalDetail.table_name} d ON d.journal_id = j.id" +
104 " JOIN #{JournalDetail.table_name} d ON d.journal_id = j.id" +
105 " WHERE j.journalized_type = 'Issue' AND j.journalized_id = #{Issue.table_name}.id" +
105 " WHERE j.journalized_type = 'Issue' AND j.journalized_id = #{Issue.table_name}.id" +
106 " AND d.property = 'attr' AND d.prop_key = 'status_id' AND d.value = :status_id"
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).update_all(["closed_on = (#{subselect})", :status_id => id.to_s])
107 Issue.where(:status_id => id, :closed_on => nil).
108 update_all(["closed_on = (#{subselect})", {:status_id => id.to_s}])
108
109
109 # Then we update issues that don't have a journal which means the
110 # Then we update issues that don't have a journal which means the
110 # current status was set on creation
111 # current status was set on creation
General Comments 0
You need to be logged in to leave comments. Login now