@@ -524,7 +524,7 class Issue < ActiveRecord::Base | |||
|
524 | 524 | return {} if roles.empty? |
|
525 | 525 | |
|
526 | 526 | result = {} |
|
527 |
workflow_permissions = WorkflowPermission.where(:tracker_id => tracker_id, :old_status_id => status_id, :role_id => roles.map(&:id)) |
|
|
527 | workflow_permissions = WorkflowPermission.where(:tracker_id => tracker_id, :old_status_id => status_id, :role_id => roles.map(&:id)) | |
|
528 | 528 | if workflow_permissions.any? |
|
529 | 529 | workflow_rules = workflow_permissions.inject({}) do |h, wp| |
|
530 | 530 | h[wp.field_name] ||= [] |
General Comments 0
You need to be logged in to leave comments.
Login now