From b62776f83394456c1c6badeeaa0b9008fbb641f6 Mon Sep 17 00:00:00 2001 From: bohung Date: Sun, 7 Mar 2021 17:07:43 +0800 Subject: [PATCH] Fix bug. --- app/helpers/admin/academic_advisings_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/admin/academic_advisings_helper.rb b/app/helpers/admin/academic_advisings_helper.rb index 933e38f..ee781e4 100644 --- a/app/helpers/admin/academic_advisings_helper.rb +++ b/app/helpers/admin/academic_advisings_helper.rb @@ -50,7 +50,7 @@ module Admin::AcademicAdvisingsHelper academic_advising.language = val when 8 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 academic_advising.url = val when 10