diff options
| -rw-r--r-- | app/controllers/nodes_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/nodes_controller.rb b/app/controllers/nodes_controller.rb index 9c84420..87d2681 100644 --- a/app/controllers/nodes_controller.rb +++ b/app/controllers/nodes_controller.rb | |||
| @@ -77,7 +77,7 @@ class NodesController < ApplicationController | |||
| 77 | "This page has unsaved changes from a previous session, shown below. " \ | 77 | "This page has unsaved changes from a previous session, shown below. " \ |
| 78 | "Save to keep them, or use \"Discard Autosave\" below to go back to the last saved version." | 78 | "Save to keep them, or use \"Discard Autosave\" below to go back to the last saved version." |
| 79 | elsif freshly_locked | 79 | elsif freshly_locked |
| 80 | flash.now[:notice] = "Node locked and ready to edit" | 80 | flash.now[:notice] ||= "Node locked and ready to edit" |
| 81 | end | 81 | end |
| 82 | rescue LockedByAnotherUser => e | 82 | rescue LockedByAnotherUser => e |
| 83 | flash[:error] = e.message | 83 | flash[:error] = e.message |
