Skip to content

Commit

Permalink
updating message comments was broken
Browse files Browse the repository at this point in the history
fixes #WEBINTERFACE-209
  • Loading branch information
Lennart Koopmann committed Dec 23, 2011
1 parent 4c977cc commit 8c5ed0e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/controllers/messagecomments_controller.rb
Expand Up @@ -25,8 +25,9 @@ def create
end

def update
comment = Messagecomment.update(params[:id], params[:messagecomment])
if comment.save
comment = Messagecomment.find(params[:id])

if comment.update_attributes(params[:messagecomment])
flash[:notice] = "Message comment has been updated."
else
flash[:error] = "Could not update message comment!"
Expand Down

0 comments on commit 8c5ed0e

Please sign in to comment.