diff options
Diffstat (limited to 'app/controllers/timelog_controller.rb')
-rw-r--r-- | app/controllers/timelog_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/timelog_controller.rb b/app/controllers/timelog_controller.rb index 30d6cc28a..7aae12b5c 100644 --- a/app/controllers/timelog_controller.rb +++ b/app/controllers/timelog_controller.rb @@ -171,7 +171,7 @@ class TimelogController < ApplicationController flash[:notice] = l(:notice_successful_update) redirect_back_or_default :action => 'index', :project_id => @time_entry.project } - format.api { head :ok } + format.api { render_api_ok } end else respond_to do |format| @@ -223,7 +223,7 @@ class TimelogController < ApplicationController } format.api { if destroyed - head :ok + render_api_ok else render_validation_errors(@time_entries) end |