Commit 597585ec authored by jplang's avatar jplang

Don't pass conditions to #destroy_all.

git-svn-id: e93f8b46-1217-0410-a6f0-8f06a7374b81
parent f98a357f
......@@ -46,7 +46,7 @@ class WorkflowPermission < WorkflowRule
transaction do
permissions.each { |status_id, rule_by_field|
rule_by_field.each { |field, rule|
destroy_all(:tracker_id =>, :role_id =>, :old_status_id => status_id, :field_name => field)
where(:tracker_id =>, :role_id =>, :old_status_id => status_id, :field_name => field).destroy_all
if rule.present?
trackers.each do |tracker|
roles.each do |role|
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