Always set the content type when it is known for node view.

This commit is contained in:
Jocelyn Fiat
2017-03-30 14:28:00 +02:00
parent 3072b99151
commit cd48fe182a
6 changed files with 21 additions and 8 deletions

View File

@@ -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

View File

@@ -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