Simplified the add child mechanism, by using a query parameter ?parent=nid

(instead of specific node/{nid}/add_child/page url)
Fixed implementation of `CMS_NODE_API.is_node_a_parent_of (..)',
  and improved parent validity checking against cycle.
This commit is contained in:
2015-09-09 23:04:08 +02:00
parent 438259033a
commit 18e159ad3c
7 changed files with 48 additions and 58 deletions

View File

@@ -61,7 +61,7 @@ feature -- Execution
do
l_node := node
if l_node = Void then
nid := node_id_path_parameter (request)
nid := node_id_path_parameter
if nid > 0 then
l_node := node_api.node (nid)
end