diff options
Diffstat (limited to 'app/controllers/nodes_controller.rb')
| -rw-r--r-- | app/controllers/nodes_controller.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/controllers/nodes_controller.rb b/app/controllers/nodes_controller.rb index 6fd000b..b56d779 100644 --- a/app/controllers/nodes_controller.rb +++ b/app/controllers/nodes_controller.rb | |||
| @@ -49,6 +49,11 @@ class NodesController < ApplicationController | |||
| 49 | 49 | ||
| 50 | redirect_to(edit_node_path(@node)) | 50 | redirect_to(edit_node_path(@node)) |
| 51 | else | 51 | else |
| 52 | @selected_kind = CccConventions::NODE_KINDS.key?(params[:kind]) ? params[:kind] : "generic" | ||
| 53 | if params[:parent_id].present? | ||
| 54 | @parent_id = params[:parent_id] | ||
| 55 | @parent_name = Node.find(@parent_id).title | ||
| 56 | end | ||
| 52 | render :new | 57 | render :new |
| 53 | end | 58 | end |
| 54 | end | 59 | end |
