mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
fix bug
This commit is contained in:
@@ -13,7 +13,7 @@ class Admins::GlccExamineMaterial < ApplicationQuery
|
||||
materials = GlccMediumTermExamineMaterial.all
|
||||
|
||||
# term
|
||||
term = params[:term].zero ? [1, 2] : params[:term]
|
||||
term = params[:term].to_i.zero ? [1, 2] : params[:term].to_i
|
||||
materials = materials.where(term: term) if term.present?
|
||||
#year
|
||||
year = if params[:date]
|
||||
|
||||
Reference in New Issue
Block a user