@@ -21,9 +21,8 class WorkflowTransition < WorkflowRule | |||||
21 | # Returns workflow transitions count by tracker and role |
|
21 | # Returns workflow transitions count by tracker and role | |
22 | def self.count_by_tracker_and_role |
|
22 | def self.count_by_tracker_and_role | |
23 | counts = connection.select_all("SELECT role_id, tracker_id, count(id) AS c FROM #{table_name} WHERE type = 'WorkflowTransition' GROUP BY role_id, tracker_id") |
|
23 | counts = connection.select_all("SELECT role_id, tracker_id, count(id) AS c FROM #{table_name} WHERE type = 'WorkflowTransition' GROUP BY role_id, tracker_id") | |
24 |
roles = Role.sorted |
|
24 | roles = Role.sorted | |
25 |
trackers = Tracker.sorted |
|
25 | trackers = Tracker.sorted | |
26 |
|
||||
27 | result = [] |
|
26 | result = [] | |
28 | trackers.each do |tracker| |
|
27 | trackers.each do |tracker| | |
29 | t = [] |
|
28 | t = [] | |
@@ -33,7 +32,6 class WorkflowTransition < WorkflowRule | |||||
33 | end |
|
32 | end | |
34 | result << [tracker, t] |
|
33 | result << [tracker, t] | |
35 | end |
|
34 | end | |
36 |
|
||||
37 | result |
|
35 | result | |
38 | end |
|
36 | end | |
39 |
|
37 |
General Comments 0
You need to be logged in to leave comments.
Login now