summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-07-16 09:17:15 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-07-16 09:17:15 +0000
commit3e6b392ddc1e32a352c49f91b8ff7400472b7985 (patch)
tree19c204e03bbf021d6e724bfa72716f8c3730be11
parent6cc6a918b4f36dbad445a5756f174b767e4ad61b (diff)
downloadredmine-3e6b392ddc1e32a352c49f91b8ff7400472b7985.tar.gz
redmine-3e6b392ddc1e32a352c49f91b8ff7400472b7985.zip
Don't pass conditions to #delete_all.
git-svn-id: http://svn.redmine.org/redmine/trunk@15667 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/models/workflow_rule.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/workflow_rule.rb b/app/models/workflow_rule.rb
index 6fd4b05f0..da7a91f43 100644
--- a/app/models/workflow_rule.rb
+++ b/app/models/workflow_rule.rb
@@ -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}" +