Fix bug.
This commit is contained in:
parent
fc10f87f10
commit
b62776f833
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue