mirror of
https://github.com/redmine/redmine.git
synced 2026-07-01 00:48:43 +02:00
Don't pass conditions to #destroy_all.
git-svn-id: http://svn.redmine.org/redmine/trunk@15672 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -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 => trackers.map(&:id), :role_id => roles.map(&:id), :old_status_id => status_id, :field_name => field)
|
||||
where(:tracker_id => trackers.map(&:id), :role_id => roles.map(&:id), :old_status_id => status_id, :field_name => field).destroy_all
|
||||
if rule.present?
|
||||
trackers.each do |tracker|
|
||||
roles.each do |role|
|
||||
|
||||
Reference in New Issue
Block a user