Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-113604

Whitespaces are removed in workflow Email templates

    Details

      Description

      Preconditions

      1. N/A

      Steps to Reproduce

      1. Go to Control Panel > Workflow > Single Approver > Diagram.
      2. Click the "review" task.
      3. Edit the "Review notification" within property Notifications.
      4. Set the template to the following:
        <#include "_TEMPLATE_CONTEXT_/${companyId}/${groupId}/20102/FORM-WORKFLOW-MACROS" /> 
        <@formEmailBody> 
        <p>Hello ${formSubmitterUser.firstName},</p> 
        <p>Your <strong>${formTitle}</strong> form has been approved by the Administrator.</p> 
        <p><a href="${formContext.workflowSubmissionUrl}">View the form</a> on our Website.</p> 
        <#if taskComments?has_content> 
        <h4 style="color:#007b84; margin: 0px; padding: 0px;">Feedback:</h4> 
        <div class="offset-content" style="padding: 30px; font-size: 87.5%;"> 
        <p style="margin: 0 0 10px 0; line-height: 22px;">${taskComments}</p> 
        </div> 
        </#if> 
        <p>Regards,<br/>Liferay Admin</p> 
        </@formEmailBody>
        

         

      Actual Result

      <#include "_TEMPLATE_CONTEXT_/${companyId}/${groupId}/20102/FORM-WORKFLOW-MACROS" /> <@formEmailBody><p>Hello ${formSubmitterUser.firstName},</p><p>Your <strong>${formTitle}</strong> form has been approved by the Administrator.</p><p><a href="${formContext.workflowSubmissionUrl}">View the form</a> on our Website.</p> <#if taskComments?has_content><h4 style="color:#007b84; margin: 0px; padding: 0px;">Feedback:</h4><div class="offset-content" style="padding: 30px; font-size: 87.5%;"><p style="margin: 0 0 10px 0; line-height: 22px;">${taskComments}</p></div></#if><p>Regards,<br/>Liferay Admin</p></@formEmailBody>
      

      Expected Result

      <#include "_TEMPLATE_CONTEXT_/${companyId}/${groupId}/20102/FORM-WORKFLOW-MACROS" /> 
      <@formEmailBody> 
      <p>Hello ${formSubmitterUser.firstName},</p> 
      <p>Your <strong>${formTitle}</strong> form has been approved by the Administrator.</p> 
      <p><a href="${formContext.workflowSubmissionUrl}">View the form</a> on our Website.</p> 
      <#if taskComments?has_content> 
      <h4 style="color:#007b84; margin: 0px; padding: 0px;">Feedback:</h4> 
      <div class="offset-content" style="padding: 30px; font-size: 87.5%;"> 
      <p style="margin: 0 0 10px 0; line-height: 22px;">${taskComments}</p> 
      </div> 
      </#if> 
      <p>Regards,<br/>Liferay Admin</p> 
      </@formEmailBody>
      

      Reproduced In
      master: 0a2e9ef1785a62ce9b68e3f5a9c9acec7707fdb8

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                chao.wang Chao Wang
                Reporter:
                rodrigo.cunha Rodrigo Cunha
                Participants of an Issue:
                Recent user:
                Clarissa Velazquez
                Engineering Assignee:
                Inácio Nery
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  11 weeks, 2 days ago

                  Packages

                  Version Package
                  7.1.10 DXP FP18
                  7.1.X
                  7.2.10 DXP FP6
                  7.2.X
                  7.3.3 CE GA4
                  Master