@@ -62,7 +62,7 class WorkflowRule < ActiveRecord::Base | |||
|
62 | 62 | false |
|
63 | 63 | else |
|
64 | 64 | transaction do |
|
65 |
|
|
|
65 | where(:tracker_id => target_tracker.id, :role_id => target_role.id).delete_all | |
|
66 | 66 | connection.insert "INSERT INTO #{WorkflowRule.table_name} (tracker_id, role_id, old_status_id, new_status_id, author, assignee, field_name, #{connection.quote_column_name 'rule'}, type)" + |
|
67 | 67 | " SELECT #{target_tracker.id}, #{target_role.id}, old_status_id, new_status_id, author, assignee, field_name, #{connection.quote_column_name 'rule'}, type" + |
|
68 | 68 | " FROM #{WorkflowRule.table_name}" + |
General Comments 0
You need to be logged in to leave comments.
Login now