|
@@ -201,8 +201,13 @@ class ActivitiesController < ApplicationController
|
201
|
201
|
def update
|
202
|
202
|
respond_to do |format|
|
203
|
203
|
if @activity.update(activity_params)
|
|
204
|
+ redirect = group_activity_path(@group, @activity)
|
|
205
|
+ if params.has_key?('commit-continue')
|
|
206
|
+ redirect = edit_group_activity_path(@group, @activity)
|
|
207
|
+ end
|
|
208
|
+
|
204
|
209
|
format.html do
|
205
|
|
- redirect_to group_activity_url(@group, @activity)
|
|
210
|
+ redirect_to redirect
|
206
|
211
|
flash_message(:info, I18n.t('activities.updated'))
|
207
|
212
|
end
|
208
|
213
|
format.json { render :show, status: :ok, location: @activity }
|