[ofbiz-plugins] branch trunk updated: Improved: No need to do anything if there is no person

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ofbiz-plugins] branch trunk updated: Improved: No need to do anything if there is no person

jleroux@apache.org
This is an automated email from the ASF dual-hosted git repository.

jleroux pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-plugins.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 2cbb7bd  Improved: No need to do anything if there is no person
2cbb7bd is described below

commit 2cbb7bd278573acc8351cac399ca80d12f17439b
Author: Jacques Le Roux <[hidden email]>
AuthorDate: Sat Jul 4 12:14:49 2020 +0200

    Improved: No need to do anything if there is no person
   
    Possible bug found while checking 17.12.04
---
 scrum/template/AcceptedBacklogNotification.ftl | 44 ++++++++++++++------------
 1 file changed, 23 insertions(+), 21 deletions(-)

diff --git a/scrum/template/AcceptedBacklogNotification.ftl b/scrum/template/AcceptedBacklogNotification.ftl
index 409815d..9e7ffdd 100644
--- a/scrum/template/AcceptedBacklogNotification.ftl
+++ b/scrum/template/AcceptedBacklogNotification.ftl
@@ -16,24 +16,26 @@ KIND, either express or implied.  See the License for the
 specific language governing permissions and limitations
 under the License.
 -->
-<html xmlns="http://www.w3.org/1999/xhtml">
-    <head>
-        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
-        <title>${title}</title>
-    </head>
-    <body>
-        <p>Hello ${person.firstName!} ${person.lastName!},</p>
-        <p>Your backlog: <b>${custRequest.description!} [${custRequest.custRequestId}]
-        <#if informationMap.workEffortId?has_content><br />in sprint: <b>${informationMap.workEffortName!} [${informationMap.workEffortId!}]</b></#if>
-        <#if informationMap.productId?has_content><br />of the product: <b>${informationMap.internalName!} [${informationMap.productId!}]</b></#if>
-        <#if removedFromSprint = true> has been removed from sprint. <#else> has been received.</#if>
-        <br />
-        <br />
-        <#if custRequest.fromPartyId == partyIdTo>
-        The complete information of this backlog/request can be found <a href="${StringUtil.wrapString(baseSecureUrl!)}/scrum/control/ViewProdBacklogItem?custRequestId=${custRequest.custRequestId!}">here.....</a>
-        <br /><br />
-        </#if>
-        Regards.<br /><br />
-        Thank you for your business.
-    </body>
-</html>
+<#if person??>
+    <html xmlns="http://www.w3.org/1999/xhtml">
+        <head>
+            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+            <title>${title}</title>
+        </head>
+        <body>
+                <p>Hello ${person.firstName!} ${person.lastName!},</p>
+                <p>Your backlog: <b>${custRequest.description!} [${custRequest.custRequestId}]
+                <#if informationMap.workEffortId?has_content><br />in sprint: <b>${informationMap.workEffortName!} [${informationMap.workEffortId!}]</b></#if>
+                <#if informationMap.productId?has_content><br />of the product: <b>${informationMap.internalName!} [${informationMap.productId!}]</b></#if>
+                <#if removedFromSprint = true> has been removed from sprint. <#else> has been received.</#if>
+                <br />
+                <br />
+                <#if custRequest.fromPartyId == partyIdTo>
+                The complete information of this backlog/request can be found <a href="${StringUtil.wrapString(baseSecureUrl!)}/scrum/control/ViewProdBacklogItem?custRequestId=${custRequest.custRequestId!}">here.....</a>
+                <br /><br />
+                </#if>
+                Regards.<br /><br />
+                Thank you for your business.
+        </body>
+    </html>
+</#if>