summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/nodes_controller.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/nodes_controller.rb b/app/controllers/nodes_controller.rb
index d8586e2..72d4a3e 100644
--- a/app/controllers/nodes_controller.rb
+++ b/app/controllers/nodes_controller.rb
@@ -68,6 +68,8 @@ class NodesController < ApplicationController
68 @node.lock_for_editing!( current_user ) 68 @node.lock_for_editing!( current_user )
69 @page = @node.autosave || @node.draft || @node.head 69 @page = @node.autosave || @node.draft || @node.head
70 70
71 flash.now[:notice] = "Node locked and ready to edit" unless @node.autosave
72
71 if @node.autosave 73 if @node.autosave
72 flash.now[:notice] = 74 flash.now[:notice] =
73 "This page has unsaved changes from a previous session, shown below. " \ 75 "This page has unsaved changes from a previous session, shown below. " \