This commit is contained in:
BoHung Chiu 2021-03-07 17:07:43 +08:00
parent fc10f87f10
commit b62776f833
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ module Admin::AcademicAdvisingsHelper
academic_advising.language = val academic_advising.language = val
when 8 when 8
hts = AdvisingType.asc(:created_at).all.to_a hts = AdvisingType.asc(:created_at).all.to_a
academic_advising.academic_advising_type = hts[val.to_i] if val.to_s.is_i? && val.to_i < hts.count academic_advising.advising_type = hts[val.to_i] if val.to_s.is_i? && val.to_i < hts.count
when 9 when 9
academic_advising.url = val academic_advising.url = val
when 10 when 10