导入作业后页面不应跳转到被导入的作业页面
This commit is contained in:
parent
0090c89dd1
commit
cff5e9171f
|
@ -764,8 +764,8 @@ class UsersController < ApplicationController
|
||||||
homework_detail_programing.save if homework_detail_programing
|
homework_detail_programing.save if homework_detail_programing
|
||||||
homework_detail_group.save if homework_detail_group
|
homework_detail_group.save if homework_detail_group
|
||||||
if params[:quotes] && !params[:quotes].blank?
|
if params[:quotes] && !params[:quotes].blank?
|
||||||
homework = HomeworkCommon.find params[:quotes].to_i
|
quotes_homework = HomeworkCommon.find params[:quotes].to_i
|
||||||
homework.update_attribute(:quotes, homework.quotes+1)
|
quotes_homework.update_attribute(:quotes, quotes_homework.quotes+1)
|
||||||
end
|
end
|
||||||
if params[:is_in_course] == "1"
|
if params[:is_in_course] == "1"
|
||||||
redirect_to homework_common_index_path(:course => homework.course_id)
|
redirect_to homework_common_index_path(:course => homework.course_id)
|
||||||
|
|
Loading…
Reference in New Issue