Merge pull request 'fix bug' (#295) from KingChan/forgeplus:standalone_develop into standalone_develop

This commit is contained in:
KingChan 2024-06-12 17:11:42 +08:00
commit 4fc96c477f
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ class Admins::GlccExamineMaterial < ApplicationQuery
materials = GlccMediumTermExamineMaterial.all materials = GlccMediumTermExamineMaterial.all
# term # 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? materials = materials.where(term: term) if term.present?
#year #year
year = if params[:date] year = if params[:date]