fix Admins::GlccExamineMaterial bug
This commit is contained in:
parent
025e3f1ac7
commit
4eb634c109
|
@ -13,7 +13,7 @@ class Admins::GlccExamineMaterial < ApplicationQuery
|
||||||
materials = GlccMediumTermExamineMaterial.all
|
materials = GlccMediumTermExamineMaterial.all
|
||||||
|
|
||||||
# term
|
# term
|
||||||
term = params[:term].to_i.zero ? [1, 2] : params[:term].to_i
|
term = params[:term].to_i == 0 ? [1, 2] : params[:term].to_i
|
||||||
materials = materials.where(term: term) if term.present?
|
materials = materials.where(term: term) if term.present?
|
||||||
#year
|
#year
|
||||||
year = if params[:date]
|
year = if params[:date]
|
||||||
|
|
Loading…
Reference in New Issue