Always set the content type when it is known for node view.
This commit is contained in:
@@ -83,9 +83,11 @@ feature -- Output
|
||||
local
|
||||
s: STRING
|
||||
do
|
||||
create s.make_empty
|
||||
a_response.set_value (a_node, "node")
|
||||
a_response.set_title (a_node.title)
|
||||
|
||||
a_response.set_value (a_node, "node")
|
||||
a_response.set_value (a_node.content_type, "optional_content_type")
|
||||
create s.make_empty
|
||||
append_content_as_html_to (a_node, False, s, a_response)
|
||||
a_response.set_main_content (s)
|
||||
end
|
||||
|
||||
@@ -48,6 +48,7 @@ feature -- Execution
|
||||
end
|
||||
end
|
||||
if l_node /= Void then
|
||||
set_optional_content_type (l_node.content_type)
|
||||
if
|
||||
attached node_api.node_type_for (l_node) as l_content_type and then
|
||||
attached node_api.node_type_webform_manager (l_content_type) as l_manager
|
||||
|
||||
Reference in New Issue
Block a user