Skip to content

Commit c33bf16

Browse files
committed
[browsermedia#642] Portlets can't be added to pages.
* Fixed - New portlets can be added to pages.
1 parent 103eac0 commit c33bf16

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

app/views/portlets/portlets/_form.html.erb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
<% if @block.class == Cms::Portlet %>
2-
<% use_page_title "Content Library / Select Portlet Type" %>
32
<% Cms::Portlet.types.each do |portlet_class|
43
type_code = portlet_class.name.underscore
54
%>
65
<div style="margin-bottom: 20px;">
76
<%
87
link_params = {:type => type_code}
98
unless params[:portlet].blank?
10-
link_params["#{type_code}[connect_to_page_id]"] = params[:portlet][:connect_to_page_id]
11-
link_params["#{type_code}[connect_to_container]"] = params[:portlet][:connect_to_container]
9+
link_params["portlet[connect_to_page_id]"] = params[:portlet][:connect_to_page_id]
10+
link_params["portlet[connect_to_container]"] = params[:portlet][:connect_to_container]
1211
end
1312
%>
1413
<%= link_to h(portlet_class.name.titleize), new_portlet_path(link_params) %>: <%= portlet_class.description %>

0 commit comments

Comments
 (0)