mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-23 00:41:14 +00:00
Don't pass conditions to #delete_all.
git-svn-id: http://svn.redmine.org/redmine/trunk@15667 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
6cc6a918b4
commit
3e6b392ddc
@ -62,7 +62,7 @@ class WorkflowRule < ActiveRecord::Base
|
||||
false
|
||||
else
|
||||
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)" +
|
||||
" 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}" +
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user