summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhukl <contact@smyck.org>2009-02-24 08:37:40 +0100
committerhukl <contact@smyck.org>2009-02-24 08:37:40 +0100
commit7c0908f03f5ba9ebc103c4f3c984bf48675711be (patch)
tree6cf1edd924f1b010cd380f2d1a65737113dee3d0
parent36c7abb1f6c09a19fe9e7586346c77ae7d87f47e (diff)
small modification with a big workflow impact!
-rw-r--r--app/controllers/nodes_controller.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/nodes_controller.rb b/app/controllers/nodes_controller.rb
index a558a86..e698ebc 100644
--- a/app/controllers/nodes_controller.rb
+++ b/app/controllers/nodes_controller.rb
@@ -49,7 +49,8 @@ class NodesController < ApplicationController
49 @draft = @node.find_or_create_draft current_user 49 @draft = @node.find_or_create_draft current_user
50 @draft.tag_list = params[:tag_list] 50 @draft.tag_list = params[:tag_list]
51 if @draft.update_attributes( params[:page] ) 51 if @draft.update_attributes( params[:page] )
52 redirect_to(@node) 52 flash[:notice] = "Draft has been updated"
53 redirect_to edit_node_path(@node)
53 else 54 else
54 render :action => :edit 55 render :action => :edit
55 end 56 end