mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-02 21:51:51 +08:00
removed unneeded lines
This commit is contained in:
parent
a5a8bbf27a
commit
01849a46db
1 changed files with 0 additions and 2 deletions
|
@ -221,11 +221,9 @@ class SampleDatatable < AjaxDatatablesRails::Base
|
|||
if @my_module then
|
||||
# Depending on the sort, order nulls first or
|
||||
# nulls last on sample_my_modules association
|
||||
|
||||
records.order("sample_my_modules.id NULLS #{sort_null_direction(params[:order].values[0])}")
|
||||
elsif @experiment
|
||||
# A very elegant solution to sort assigned samples at a experiment level
|
||||
|
||||
# grabs the ids of samples which has a modules that belongs to this project
|
||||
assigned = Sample
|
||||
.joins('LEFT OUTER JOIN "sample_my_modules" ON "sample_my_modules"."sample_id" = "samples"."id"')
|
||||
|
|
Loading…
Reference in a new issue