Skip to content

Commit 7f06eee

Browse files
LPD-51932 SF
1 parent 5951341 commit 7f06eee

File tree

1 file changed

+5
-6
lines changed
  • modules/apps/commerce/commerce-checkout-web/src/main/resources/META-INF/resources/checkout_step

1 file changed

+5
-6
lines changed

modules/apps/commerce/commerce-checkout-web/src/main/resources/META-INF/resources/checkout_step/order_confirmation.jsp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,14 @@
1010
<%
1111
OrderConfirmationCheckoutStepDisplayContext orderConfirmationCheckoutStepDisplayContext = (OrderConfirmationCheckoutStepDisplayContext)request.getAttribute(CommerceCheckoutWebKeys.COMMERCE_CHECKOUT_STEP_DISPLAY_CONTEXT);
1212
13-
CommerceOrderPayment commerceOrderPayment = orderConfirmationCheckoutStepDisplayContext.getCommerceOrderPayment();
1413
CommerceOrder commerceOrder = orderConfirmationCheckoutStepDisplayContext.getCommerceOrder();
14+
CommerceOrderPayment commerceOrderPayment = orderConfirmationCheckoutStepDisplayContext.getCommerceOrderPayment();
1515
16-
String commerceOrderPaymentContent = null;
17-
16+
String content = null;
1817
int paymentStatus = commerceOrder.getPaymentStatus();
1918
2019
if (commerceOrderPayment != null) {
21-
commerceOrderPaymentContent = commerceOrderPayment.getContent();
20+
content = commerceOrderPayment.getContent();
2221
paymentStatus = commerceOrderPayment.getStatus();
2322
}
2423
%>
@@ -40,8 +39,8 @@ if (commerceOrderPayment != null) {
4039

4140
<liferay-ui:message key="<%= taglibMessageKey %>" />
4241

43-
<c:if test="<%= !commerceOrderPaymentContent.isEmpty() %>">
44-
<div><%= SanitizerUtil.sanitize(themeDisplay.getCompanyId(), themeDisplay.getScopeGroupId(), themeDisplay.getUserId(), CommerceOrderPayment.class.getName(), commerceOrderPayment.getCommerceOrderPaymentId(), "plain/text", commerceOrderPaymentContent) %></div>
42+
<c:if test="<%= !content.isEmpty() %>">
43+
<div><%= SanitizerUtil.sanitize(themeDisplay.getCompanyId(), themeDisplay.getScopeGroupId(), themeDisplay.getUserId(), CommerceOrderPayment.class.getName(), commerceOrderPayment.getCommerceOrderPaymentId(), "plain/text", content) %></div>
4544
</c:if>
4645

4746
<aui:button-row>

0 commit comments

Comments
 (0)