Commit 7b3b5987 authored by jplang's avatar jplang

Don't pass conditions to #delete_all.

git-svn-id: https://svn.redmine.org/redmine/trunk@15667 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent c52be151
...@@ -62,7 +62,7 @@ class WorkflowRule < ActiveRecord::Base ...@@ -62,7 +62,7 @@ class WorkflowRule < ActiveRecord::Base
false false
else else
transaction do transaction do
delete_all :tracker_id => target_tracker.id, :role_id => target_role.id where(:tracker_id => target_tracker.id, :role_id => target_role.id).delete_all
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)" + 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)" +
" SELECT #{target_tracker.id}, #{target_role.id}, old_status_id, new_status_id, author, assignee, field_name, #{connection.quote_column_name 'rule'}, type" + " SELECT #{target_tracker.id}, #{target_role.id}, old_status_id, new_status_id, author, assignee, field_name, #{connection.quote_column_name 'rule'}, type" +
" FROM #{WorkflowRule.table_name}" + " FROM #{WorkflowRule.table_name}" +
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment