修改空数据时,课程首页无法加载(居然是死循环。。。)
This commit is contained in:
parent
77cb2b0893
commit
f3062da237
|
@ -122,6 +122,7 @@
|
|||
else
|
||||
course_term = "春季学期"
|
||||
end%>
|
||||
<%break if Time.new.strftime("%Y").to_i - year_now >= 2%>
|
||||
<% all_new_hot_course += find_all_new_hot_course(course_count-all_new_hot_course.count, @school_id, year_now, course_term)%>
|
||||
<% end%>
|
||||
<%= render :partial => 'course_list', :locals => {:course_list => all_new_hot_course} %>
|
||||
|
@ -152,6 +153,7 @@
|
|||
else
|
||||
course_term = "春季学期"
|
||||
end%>
|
||||
<%break if Time.new.strftime("%Y").to_i - year_now >= 2%>
|
||||
<% all_new_hot_course += find_all_new_hot_course(9-(all_new_hot_course.count + cur_school_course.count), @school_id, year_now, course_term)%>
|
||||
<% end%>
|
||||
<%= render :partial => 'course_list', :locals => {:course_list => all_new_hot_course} %>
|
||||
|
|
Loading…
Reference in New Issue