summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/nodes_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/nodes_controller.rb b/app/controllers/nodes_controller.rb
index 69aa268..a72be68 100644
--- a/app/controllers/nodes_controller.rb
+++ b/app/controllers/nodes_controller.rb
@@ -22,6 +22,7 @@ class NodesController < ApplicationController
22 22
23 def new 23 def new
24 @node = Node.new node_params 24 @node = Node.new node_params
25 @selected_kind = CccConventions::NODE_KINDS.key?(params[:kind]) ? params[:kind] : "generic"
25 if params.has_key?(:parent_id) 26 if params.has_key?(:parent_id)
26 @parent_id = params[:parent_id] 27 @parent_id = params[:parent_id]
27 @parent_name = Node.find(@parent_id).title 28 @parent_name = Node.find(@parent_id).title