mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-08 22:24:23 +08:00
fixed task archive
This commit is contained in:
parent
fa08b861d0
commit
4b5be7530c
1 changed files with 3 additions and 0 deletions
|
@ -152,12 +152,15 @@ class Project < ActiveRecord::Base
|
|||
project_my_modules
|
||||
.joins(:experiment)
|
||||
.where('experiments.archived=false')
|
||||
.where('my_modules.archived=false')
|
||||
|
||||
else
|
||||
project_my_modules
|
||||
.joins(:user_my_modules)
|
||||
.joins(:experiment)
|
||||
.where('experiments.archived=false AND user_my_modules.user_id IN (?)',
|
||||
user.id)
|
||||
.where('my_modules.archived=false')
|
||||
.distinct
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue