This is an automated email from the ASF dual-hosted git repository.

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

commit f089d59389da7958592b42a47991fc5b68b707ee
Author: bjugl <[email protected]>
AuthorDate: Thu Apr 8 11:05:38 2021 +0200

    Fixed: Service calls of "createPartyContactMech" now include the needed 
contactMechTypeId (OFBIZ-12175) (#292)
    
    This was broken by OFBIZ-8358 where, as well explained at OFBIZ-12175,
    "createPartyContactMech Service has been changed to expect an OUT
    contactMechTypeId paramter and the call on this end has not been modified."
    
    jleroux: I fixed lines too long
    File PartyServices.java
    Error Description   Line
    La ligne excède 150 caractères (trouvé 178).        2621
    La ligne excède 150 caractères (trouvé 178).        2638
    La ligne excède 150 caractères (trouvé 191).        2655
    
    Conflicts handled by hand
---
 .../java/org/apache/ofbiz/party/party/PartyServices.java     | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git 
a/applications/party/src/main/java/org/apache/ofbiz/party/party/PartyServices.java
 
b/applications/party/src/main/java/org/apache/ofbiz/party/party/PartyServices.java
index 460a3bd..8e44a20c 100644
--- 
a/applications/party/src/main/java/org/apache/ofbiz/party/party/PartyServices.java
+++ 
b/applications/party/src/main/java/org/apache/ofbiz/party/party/PartyServices.java
@@ -2618,8 +2618,8 @@ public class PartyServices {
                                 currentContactMechPurposeTypeId = 
"GENERAL_LOCATION";
                             }
                             Map<String, Object> serviceResult = 
dispatcher.runSync("createPartyContactMech", UtilMisc.toMap("partyId", 
newPartyId,
-                                    "contactMechId", newContactMechId, 
"contactMechTypeId", currentContactMechTypeId, "contactMechPurposeTypeId", 
currentContactMechPurposeTypeId,
-                                    "userLogin", userLogin));
+                                    "contactMechId", newContactMechId, 
"contactMechTypeId", currentContactMechTypeId,
+                                    "contactMechPurposeTypeId", 
currentContactMechPurposeTypeId, "userLogin", userLogin));
                             if (ServiceUtil.isError(serviceResult)) {
                                 return 
ServiceUtil.returnError(ServiceUtil.getErrorMessage(serviceResult));
                             }
@@ -2635,8 +2635,8 @@ public class PartyServices {
                                 currentContactMechPurposeTypeId = "PHONE_WORK";
                             }
                             Map<String, Object> resultMap = 
dispatcher.runSync("createPartyContactMech", UtilMisc.toMap("partyId", 
newPartyId,
-                                    "contactMechId", newContactMechId, 
"contactMechTypeId", currentContactMechTypeId, "contactMechPurposeTypeId", 
currentContactMechPurposeTypeId,
-                                    "userLogin", userLogin));
+                                    "contactMechId", newContactMechId, 
"contactMechTypeId", currentContactMechTypeId,
+                                    "contactMechPurposeTypeId", 
currentContactMechPurposeTypeId, "userLogin", userLogin));
                             if (ServiceUtil.isError(resultMap)) {
                                 return 
ServiceUtil.returnError(ServiceUtil.getErrorMessage(result));
                             }
@@ -2652,8 +2652,8 @@ public class PartyServices {
                                 currentContactMechPurposeTypeId = 
"PRIMARY_EMAIL";
                             }
                             Map<String, Object> resultMap = 
dispatcher.runSync("createPartyContactMech", UtilMisc.toMap("partyId", 
newPartyId,
-                                    "contactMechId", newContactMechId, 
"contactMechTypeId", currentContactMechTypeId, "contactMechPurposeTypeId", 
currentContactMechPurposeTypeId, "userLogin",
-                                    userLogin));
+                                    "contactMechId", newContactMechId, 
"contactMechTypeId", currentContactMechTypeId,
+                                    "contactMechPurposeTypeId", 
currentContactMechPurposeTypeId, "userLogin", userLogin));
                             if (ServiceUtil.isError(resultMap)) {
                                 return 
ServiceUtil.returnError(ServiceUtil.getErrorMessage(result));
                             }

Reply via email to