Report failure when saving to the front-end

pull/6827/head
friflaj 14 years ago
parent 8482365ca4
commit 606c80ae04
  1. 2
      app/controllers/backlogs_controller.rb

@ -173,7 +173,7 @@ class BacklogsController < ApplicationController
attribs = params.select{|k,v| k != 'id' and Sprint.column_names.include? k }
attribs = Hash[*attribs.flatten]
result = sprint.update_attributes attribs
render :text => result
render :text => result, :status => (result ? 200 : 400)
end
def wiki_page

Loading…
Cancel
Save