mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-29 11:12:01 +08:00
Fix steps ordering in reports [SCI-1008]
This commit is contained in:
parent
0ef9c7eff6
commit
5d55720aad
2 changed files with 2 additions and 2 deletions
|
@ -372,7 +372,7 @@ class Protocol < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def completed_steps
|
||||
steps.select(&:completed)
|
||||
steps.where(completed: true)
|
||||
end
|
||||
|
||||
def space_taken
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue