Browse Source

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

pull/347/head
KingChan 2 years ago
parent
commit
f8a489a1a8
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/queries/admins/glcc_examine_material.rb

+ 1
- 1
app/queries/admins/glcc_examine_material.rb View File

@@ -13,7 +13,7 @@ class Admins::GlccExamineMaterial < ApplicationQuery
materials = GlccMediumTermExamineMaterial.all

# 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?
#year
year = if params[:date]


Loading…
Cancel
Save