Skip to content

Commit

Permalink
#16792 Show page rule messages only in page
Browse files Browse the repository at this point in the history
  • Loading branch information
hmoreras authored and fmontes committed Jul 22, 2019
1 parent 29babfc commit 84f7f8d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions dotCMS/src/main/webapp/WEB-INF/jsp/rules/include.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
<%@page import="com.dotmarketing.business.APILocator"%>
<%@page import="org.apache.struts.Globals"%>
<%@ page import="com.dotmarketing.util.PortletURLUtil" %>
<%@page import="com.dotmarketing.portlets.contentlet.model.Contentlet"%>
<%@ include file="/html/common/init.jsp" %>


<% Contentlet contentlet = (Contentlet) APILocator.getContentletAPI().findContentletByIdentifierAnyLanguage(request.getParameter("id")); %>



Expand Down Expand Up @@ -47,10 +48,10 @@
var siteParam="realmId=<%=request.getParameter("id")%>";
var hideFireOnParam = "hideFireOn=true";
var hideRulePushOptions = "hideRulePushOptions=<%=request.getParameter("hideRulePushOptions")%>";
var isContentletHost = "isContentletHost=<%=contentlet.isHost()%>"
//Add param to the rules engine iframe.
document.getElementById("rulesIframe").src = "/<%=PortletURLUtil.URL_ADMIN_PREFIX%>/index.html#/fromCore/rules?" + localeParam + "&" + siteParam + "&" + hideFireOnParam+ "&" +hideRulePushOptions;
document.getElementById("rulesIframe").src = "/<%=PortletURLUtil.URL_ADMIN_PREFIX%>/index.html#/fromCore/rules?" + localeParam + "&" + siteParam + "&" + hideFireOnParam+ "&" +hideRulePushOptions + "&" + isContentletHost ;
Expand Down

0 comments on commit 84f7f8d

Please sign in to comment.