|
|
|
@ -529,12 +529,12 @@ class ExercisesController < ApplicationController
|
|
|
|
|
if the_group_setting_status == 2
|
|
|
|
|
ex_group_params = {
|
|
|
|
|
:publish_time => the_group_setting.publish_time,
|
|
|
|
|
:end_time => exercise_end_time
|
|
|
|
|
:end_time => exercise_end_time < Time.now ? the_group_setting.end_time : exercise_end_time
|
|
|
|
|
}
|
|
|
|
|
elsif the_group_setting_status == 3
|
|
|
|
|
ex_group_params = {
|
|
|
|
|
:publish_time => the_group_setting.publish_time,
|
|
|
|
|
:end_time => the_group_setting.end_time
|
|
|
|
|
:end_time => exercise_end_time
|
|
|
|
|
}
|
|
|
|
|
end
|
|
|
|
|
the_group_setting.update_attributes!(ex_group_params)
|
|
|
|
|