Skip to content

Commit

Permalink
LPS-128446 Pass view mode obtained from request parameter in JournalA…
Browse files Browse the repository at this point in the history
…rticleTag when calling getArticleDisplay
  • Loading branch information
ruben-pulido authored and brianchandotcom committed Mar 11, 2021
1 parent 6f58c69 commit 66cbe25
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import com.liferay.portal.kernel.theme.ThemeDisplay;
import com.liferay.portal.kernel.util.Constants;
import com.liferay.portal.kernel.util.JavaConstants;
import com.liferay.portal.kernel.util.ParamUtil;
import com.liferay.portal.kernel.util.Validator;
import com.liferay.portal.kernel.util.WebKeys;
import com.liferay.portal.kernel.workflow.WorkflowConstants;
Expand Down Expand Up @@ -68,7 +69,8 @@ public int doStartTag() throws JspException {
try {
_articleDisplay = JournalArticleLocalServiceUtil.getArticleDisplay(
_article.getGroupId(), _article.getArticleId(),
_article.getVersion(), _ddmTemplateKey, Constants.VIEW,
_article.getVersion(), _ddmTemplateKey,
ParamUtil.getString(request, "p_l_mode", Constants.VIEW),
getLanguageId(), 1, portletRequestModel, themeDisplay);
}
catch (PortalException portalException) {
Expand Down

0 comments on commit 66cbe25

Please sign in to comment.