Fix steps ordering in reports [SCI-1008]

This commit is contained in:
Oleksii Kriuchykhin 2017-05-11 15:56:33 +02:00
parent 0ef9c7eff6
commit 5d55720aad
2 changed files with 2 additions and 2 deletions

View file

@ -372,7 +372,7 @@ class Protocol < ActiveRecord::Base
end
def completed_steps
steps.select(&:completed)
steps.where(completed: true)
end
def space_taken

View file

@ -52,7 +52,7 @@ module ReportExtends
true,
[:step],
proc do |my_module|
my_module.protocol.completed_steps
my_module.protocol.completed_steps.order(:position)
end),
ModuleElement.new(:result_assets,
true,